Displaying 11 results from an estimated 11 matches for "754b8a21a96d".
2023 May 03
2
[PATCH net v3] virtio_net: Fix error unwinding of XDP initialization
...ed NAPI, which is not the
expected behavior. Need to roll back the previous rq initialization
to avoid leaks in error unwinding of init code.
Also extract a helper function of disable queue pairs, and use newly
introduced helper function in error unwinding and virtnet_close;
Issue: 3383038
Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
Signed-off-by: Feng Liu <feliu at nvidia.com>
Reviewed-by: William Tu <witu at nvidia.com>
Reviewed-by: Parav Pandit <parav at nvidia.com>
Reviewed-by: Simon Horman <simon.horman at corigine.com>
Acked-by: Michael S. Tsirkin <m...
2023 Feb 02
1
[PATCH 1/2] virtio-net: Keep stop() to follow mirror sequence of open()
Cited commit in fixes tag frees rxq xdp info while RQ NAPI is
still enabled and packet processing may be ongoing.
Follow the mirror sequence of open() in the stop() callback.
This ensures that when rxq info is unregistered, no rx
packet processing is ongoing.
Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
Signed-off-by: Parav Pandit <parav at nvidia.com>
---
drivers/net/virtio_net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 7e1a98430190..b7d0b54c3bb0 100644
--- a/dr...
2023 Apr 28
1
[PATCH net v1 1/2] virtio_net: Fix error unwinding of XDP initialization
...rtnet_open(), some rq xdp initialization
may hit an error causing net device open failed. However, previous
rqs have already initialized XDP and enabled NAPI, which is not the
expected behavior. Need to roll back the previous rq initialization
to avoid leaks in error unwinding of init code.
Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
Signed-off-by: Feng Liu <feliu at nvidia.com>
Reviewed-by: William Tu <witu at nvidia.com>
Reviewed-by: Parav Pandit <parav at nvidia.com>
---
drivers/net/virtio_net.c | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5...
2023 May 12
4
[PATCH net v6] virtio_net: Fix error unwinding of XDP initialization
.... Need to roll back the previous rq initialization
to avoid leaks in error unwinding of init code.
Also extract helper functions of disable and enable queue pairs.
Use newly introduced disable helper function in error unwinding and
virtnet_close. Use enable helper function in virtnet_open.
Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
Signed-off-by: Feng Liu <feliu at nvidia.com>
Reviewed-by: Jiri Pirko <jiri at nvidia.com>
Reviewed-by: William Tu <witu at nvidia.com>
---
v5 -> v6
feedbacks from Xuan Zhuo
- add disable_delayed_refill and cancel_delayed_work_sync...
2023 May 02
1
[PATCH net v2] virtio_net: Fix error unwinding of XDP initialization
...d XDP and enabled NAPI, which is not the
expected behavior. Need to roll back the previous rq initialization
to avoid leaks in error unwinding of init code.
Also extract a helper function of disable queue pairs, and use newly
introduced helper function in error unwinding and virtnet_close;
Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
Signed-off-by: Feng Liu <feliu at nvidia.com>
Reviewed-by: William Tu <witu at nvidia.com>
Reviewed-by: Parav Pandit <parav at nvidia.com>
Reviewed-by: Simon Horman <simon.horman at corigine.com>
Acked-by: Michael S. Tsirkin <m...
2023 May 02
1
[PATCH net v2] virtio_net: Fix error unwinding of XDP initialization
...t the
> expected behavior. Need to roll back the previous rq initialization
> to avoid leaks in error unwinding of init code.
>
> Also extract a helper function of disable queue pairs, and use newly
> introduced helper function in error unwinding and virtnet_close;
>
> Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
> Signed-off-by: Feng Liu <feliu at nvidia.com>
> Reviewed-by: William Tu <witu at nvidia.com>
> Reviewed-by: Parav Pandit <parav at nvidia.com>
> Reviewed-by: Simon Horman <simon.horman at corigine.com>
> Acked-by:...
2023 May 06
1
[PATCH net v3] virtio_net: Fix error unwinding of XDP initialization
...d behavior. Need to roll back the previous rq initialization
> to avoid leaks in error unwinding of init code.
>
> Also extract a helper function of disable queue pairs, and use newly
> introduced helper function in error unwinding and virtnet_close;
>
> Issue: 3383038
> Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
> Signed-off-by: Feng Liu <feliu at nvidia.com>
> Reviewed-by: William Tu <witu at nvidia.com>
> Reviewed-by: Parav Pandit <parav at nvidia.com>
> Reviewed-by: Simon Horman <simon.horman at corigine.com>
> Acked-by:...
2023 May 06
1
[PATCH net v3] virtio_net: Fix error unwinding of XDP initialization
...k the previous rq initialization
>> to avoid leaks in error unwinding of init code.
>>
>> Also extract a helper function of disable queue pairs, and use newly
>> introduced helper function in error unwinding and virtnet_close;
>>
>> Issue: 3383038
>> Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
>> Signed-off-by: Feng Liu <feliu at nvidia.com>
>> Reviewed-by: William Tu <witu at nvidia.com>
>> Reviewed-by: Parav Pandit <parav at nvidia.com>
>> Reviewed-by: Simon Horman <simon.horman at corigine.com>...
2023 May 10
2
[PATCH net v3] virtio_net: Fix error unwinding of XDP initialization
...t;>>>>
>>>>>> Also extract a helper function of disable queue pairs, and use newly
>>>>>> introduced helper function in error unwinding and virtnet_close;
>>>>>>
>>>>>> Issue: 3383038
>>>>>> Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
>>>>>> Signed-off-by: Feng Liu <feliu at nvidia.com>
>>>>>> Reviewed-by: William Tu <witu at nvidia.com>
>>>>>> Reviewed-by: Parav Pandit <parav at nvidia.com>
>>>>>&g...
2023 May 09
1
[PATCH net v3] virtio_net: Fix error unwinding of XDP initialization
...init code.
> >>>>
> >>>> Also extract a helper function of disable queue pairs, and use newly
> >>>> introduced helper function in error unwinding and virtnet_close;
> >>>>
> >>>> Issue: 3383038
> >>>> Fixes: 754b8a21a96d ("virtio_net: setup xdp_rxq_info")
> >>>> Signed-off-by: Feng Liu <feliu at nvidia.com>
> >>>> Reviewed-by: William Tu <witu at nvidia.com>
> >>>> Reviewed-by: Parav Pandit <parav at nvidia.com>
> >>>> Reviewed-...
2023 Feb 02
3
[PATCH 0/2] virtio-net: close() to follow mirror of open()
Hi,
This two small patches improves ndo_close() callback to follow
the mirror sequence of ndo_open() callback. This improves the code auditing
and also ensure that xdp rxq info is not unregistered while NAPI on
RXQ is ongoing.
Please review.
Patch summary:
patch-1 ensures that xdp rq info is unregistered after rq napi is disabled
patch-2 keeps the mirror sequence for close() be mirror of open()