tun: remove unnecessary tun_xdp_hdr structure
authorJason Wang <jasowang@redhat.com>
Tue, 1 Jul 2025 01:03:51 +0000 (09:03 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 22:29:46 +0000 (15:29 -0700)
commit4d313f2bd22213caace3fe4fb02977b527f9c6c3
treecbfa6f06f93ac0db3fc2fffb23c9599f14c6ff01
parent285c895fba9e42dfdc9eea1c3001585d9ee58233
tun: remove unnecessary tun_xdp_hdr structure

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.

Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250701010352.74515-1-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/tap.c
drivers/net/tun.c
drivers/vhost/net.c
include/linux/if_tun.h