diff options
author | Andrea Mayer <andrea.mayer@uniroma2.it> | 2022-07-27 21:54:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-29 14:14:02 +0300 |
commit | b07c8cdbe918aa17da864da9a89b22afaed0393e (patch) | |
tree | c1953c862b931d74fa1223f7b602c5652d7cf3a5 /include/uapi/linux/seg6_iptunnel.h | |
parent | 5b91884bf50b21d34bd3daa5c8f8b7e92e0a2c46 (diff) | |
download | linux-b07c8cdbe918aa17da864da9a89b22afaed0393e.tar.xz |
seg6: add support for SRv6 H.Encaps.Red behavior
The SRv6 H.Encaps.Red behavior described in [1] is an optimization of
the SRv6 H.Encaps behavior [2].
H.Encaps.Red reduces the length of the SRH by excluding the first
segment (SID) in the SRH of the pushed IPv6 header. The first SID is
only placed in the IPv6 Destination Address field of the pushed IPv6
header.
When the SRv6 Policy only contains one SID the SRH is omitted, unless
there is an HMAC TLV to be carried.
[1] - https://datatracker.ietf.org/doc/html/rfc8986#section-5.2
[2] - https://datatracker.ietf.org/doc/html/rfc8986#section-5.1
Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Signed-off-by: Anton Makarov <anton.makarov11235@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/seg6_iptunnel.h')
-rw-r--r-- | include/uapi/linux/seg6_iptunnel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h index eb815e0d0ac3..538152a7b2c3 100644 --- a/include/uapi/linux/seg6_iptunnel.h +++ b/include/uapi/linux/seg6_iptunnel.h @@ -35,6 +35,7 @@ enum { SEG6_IPTUN_MODE_INLINE, SEG6_IPTUN_MODE_ENCAP, SEG6_IPTUN_MODE_L2ENCAP, + SEG6_IPTUN_MODE_ENCAP_RED, }; #endif |