Thread (9 messages) read the whole thread 9 messages, 3 authors, 2021-07-22

Re: [dpdk-dev] [PATCH v3] net/virtio: fix Rx scatter offload

From: Maxime Coquelin <hidden>
Date: 2021-07-20 16:20:02


On 7/20/21 9:54 AM, Andrew Rybchenko wrote:
From: Ivan Ilchenko <redacted>

Report Rx scatter offload capability depending on VIRTIO_NET_F_MRG_RXBUF.

If Rx scatter is not requested, ensure that provided Rx buffers on
each Rx queue are big enough to fit Rx packets up to configured MTU.

Fixes: ce17eddefc20 ("ethdev: introduce Rx queue offloads API")
Cc: stable@dpdk.org

Signed-off-by: Ivan Ilchenko <redacted>
Signed-off-by: Andrew Rybchenko <redacted>
Reviewed-by: Maxime Coquelin <redacted>
---
v3:
 - fix segfault on MTU set if an Rx queue is not setup

v2:
 - do not overwrite Rx offloads when Rx scatter is added

 drivers/net/virtio/virtio.h        |  2 +
 drivers/net/virtio/virtio_ethdev.c | 65 ++++++++++++++++++++++++++++++
 drivers/net/virtio/virtio_ethdev.h |  5 +++
 drivers/net/virtio/virtio_rxtx.c   | 10 +++++
 4 files changed, 82 insertions(+)
Thanks for the fix.
I see my R-by is already there, but I confirm this is good to me.

Maxime
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help