Re: [PATCH v2 1/3] virtio_net: Preserve virtio header before XDP program execution

2024-01-25 Thread Liang Chen
On Wed, Jan 24, 2024 at 5:08 PM Xuan Zhuo wrote: > > On Wed, 24 Jan 2024 16:57:19 +0800, Liang Chen > wrote: > > The xdp program may overwrite the inline virtio header. To ensure the > > integrity of the virtio header, it is saved in a data structure that > > wraps both the xdp_buff and the

Re: [PATCH v2 1/3] virtio_net: Preserve virtio header before XDP program execution

2024-01-24 Thread Xuan Zhuo
On Wed, 24 Jan 2024 16:57:19 +0800, Liang Chen wrote: > The xdp program may overwrite the inline virtio header. To ensure the > integrity of the virtio header, it is saved in a data structure that > wraps both the xdp_buff and the header before running the xdp program. > > Signed-off-by: Liang

[PATCH v2 1/3] virtio_net: Preserve virtio header before XDP program execution

2024-01-24 Thread Liang Chen
The xdp program may overwrite the inline virtio header. To ensure the integrity of the virtio header, it is saved in a data structure that wraps both the xdp_buff and the header before running the xdp program. Signed-off-by: Liang Chen --- drivers/net/virtio_net.c | 43