diff options
author | Justin Iurman <justin.iurman@uliege.be> | 2024-08-17 15:18:18 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-08-22 10:45:12 +0200 |
commit | 273f8c142003dfd874d45b1a60965809e95ccd50 (patch) | |
tree | d4c9555f08c360d00f38eaf3904ac4ce50847368 /include/uapi/linux/ioam6_iptunnel.h | |
parent | 924b8bea870b4968cec4784676e6b27597e25d01 (diff) |
net: ipv6: ioam6: new feature tunsrc
This patch provides a new feature (i.e., "tunsrc") for the tunnel (i.e.,
"encap") mode of ioam6. Just like seg6 already does, except it is
attached to a route. The "tunsrc" is optional: when not provided (by
default), the automatic resolution is applied. Using "tunsrc" when
possible has a benefit: performance. See the comparison:
- before (= "encap" mode): https://ibb.co/bNCzvf7
- after (= "encap" mode with "tunsrc"): https://ibb.co/PT8L6yq
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux/ioam6_iptunnel.h')
-rw-r--r-- | include/uapi/linux/ioam6_iptunnel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/ioam6_iptunnel.h b/include/uapi/linux/ioam6_iptunnel.h index 38f6a8fdfd34..8aef21e4a8c1 100644 --- a/include/uapi/linux/ioam6_iptunnel.h +++ b/include/uapi/linux/ioam6_iptunnel.h @@ -50,6 +50,12 @@ enum { IOAM6_IPTUNNEL_FREQ_K, /* u32 */ IOAM6_IPTUNNEL_FREQ_N, /* u32 */ + /* Tunnel src address. + * For encap,auto modes. + * Optional (automatic if not provided). + */ + IOAM6_IPTUNNEL_SRC, /* struct in6_addr */ + __IOAM6_IPTUNNEL_MAX, }; |