diff options
author | Jason Wang <jasowang@redhat.com> | 2025-07-01 09:03:51 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-02 15:29:46 -0700 |
commit | 4d313f2bd22213caace3fe4fb02977b527f9c6c3 (patch) | |
tree | cbfa6f06f93ac0db3fc2fffb23c9599f14c6ff01 /include/linux/if_tun.h | |
parent | 285c895fba9e42dfdc9eea1c3001585d9ee58233 (diff) |
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>
Diffstat (limited to 'include/linux/if_tun.h')
-rw-r--r-- | include/linux/if_tun.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index 043d442994b0..80166eb62f41 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -19,11 +19,6 @@ struct tun_msg_ctl { void *ptr; }; -struct tun_xdp_hdr { - int buflen; - struct virtio_net_hdr gso; -}; - #if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) struct socket *tun_get_socket(struct file *); struct ptr_ring *tun_get_tx_ring(struct file *file); |