[PATCH v2] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-03 Thread Wenbo Li
running as a TDX guest. This patch handles small and mergeable packets separately and fixes the mismatched buffer address. Changes from v1: Use ctx to get xdp_headroom. Fixes: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") Signed-off-by: Wenbo Li Sig

Re: [External] Re: [PATCH v2] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-04 Thread Wenbo Li
ve_small). flags = ((struct virtio_net_common_hdr *)buf)->hdr.flags; So I think it is time to unify the buf that passed to the virtio core into a pointer pointed to the virtnet header. Thanks. Thanks. On Wed, Sep 4, 2024 at 2:46 PM Xuan Zhuo wrote: On Wed, 4 Sep 2024 14:10:09 +0800, Wenbo

[RESEND PATCH v3] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-18 Thread Wenbo Li
: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") Signed-off-by: Wenbo Li Signed-off-by: Jiahui Cen Signed-off-by: Ying Fang --- drivers/net/virtio_net.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/net/virt

[PATCH v3] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-18 Thread Wenbo Li
: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") Signed-off-by: Wenbo Li Signed-off-by: Jiahui Cen Signed-off-by: Ying Fang --- drivers/net/virtio_net.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/net/virt

[RESEND PATCH v3] virtio_net: Fix mismatched buf address when unmapping for small packets

2024-09-19 Thread Wenbo Li
: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") Signed-off-by: Wenbo Li Signed-off-by: Jiahui Cen Signed-off-by: Ying Fang --- drivers/net/virtio_net.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c