Re: [PATCH net-next 1/2] tun: remove unnecessary tun_xdp_hdr structure

2025-06-23 Thread Jason Wang
On Thu, Jun 12, 2025 at 4:32 PM Jason Wang wrote: > > With f95f0f95cfb7("net, xdp: Introduce xdp_init_buff utility routine"), > buffer length could be stored as frame size so there's no need to have > a dedicated tun_xdp_hdr structure. We can simply store virtio net > header instead. > > Signed-of

Re: [PATCH net-next 1/2] tun: remove unnecessary tun_xdp_hdr structure

2025-06-12 Thread Willem de Bruijn
Jason Wang wrote: > With f95f0f95cfb7("net, xdp: Introduce xdp_init_buff utility routine"), > buffer length could be stored as frame size so there's no need to have > a dedicated tun_xdp_hdr structure. We can simply store virtio net > header instead. > > Signed-off-by: Jason Wang Acked-by: Wille

[PATCH net-next 1/2] tun: remove unnecessary tun_xdp_hdr structure

2025-06-12 Thread Jason Wang
With f95f0f95cfb7("net, xdp: Introduce xdp_init_buff utility routine"), buffer length could be stored as frame size so there's no need to have a dedicated tun_xdp_hdr structure. We can simply store virtio net header instead. Signed-off-by: Jason Wang --- drivers/net/tap.c | 5 ++--- drivers