hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/uapi/linux/seg6_iptunnel.h
....@@ -37,25 +37,4 @@
3737 SEG6_IPTUN_MODE_L2ENCAP,
3838 };
3939
40
-#ifdef __KERNEL__
41
-
42
-static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
43
-{
44
- int head = 0;
45
-
46
- switch (tuninfo->mode) {
47
- case SEG6_IPTUN_MODE_INLINE:
48
- break;
49
- case SEG6_IPTUN_MODE_ENCAP:
50
- head = sizeof(struct ipv6hdr);
51
- break;
52
- case SEG6_IPTUN_MODE_L2ENCAP:
53
- return 0;
54
- }
55
-
56
- return ((tuninfo->srh->hdrlen + 1) << 3) + head;
57
-}
58
-
59
-#endif
60
-
6140 #endif