From 102a0743326a03cd1a1202ceda21e175b7d3575c Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 20 Feb 2024 01:20:52 +0000 Subject: [PATCH] add new system file --- kernel/include/uapi/linux/seg6_iptunnel.h | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-) diff --git a/kernel/include/uapi/linux/seg6_iptunnel.h b/kernel/include/uapi/linux/seg6_iptunnel.h index 09fb608..eb815e0 100644 --- a/kernel/include/uapi/linux/seg6_iptunnel.h +++ b/kernel/include/uapi/linux/seg6_iptunnel.h @@ -37,25 +37,4 @@ SEG6_IPTUN_MODE_L2ENCAP, }; -#ifdef __KERNEL__ - -static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) -{ - int head = 0; - - switch (tuninfo->mode) { - case SEG6_IPTUN_MODE_INLINE: - break; - case SEG6_IPTUN_MODE_ENCAP: - head = sizeof(struct ipv6hdr); - break; - case SEG6_IPTUN_MODE_L2ENCAP: - return 0; - } - - return ((tuninfo->srh->hdrlen + 1) << 3) + head; -} - -#endif - #endif -- Gitblit v1.6.2