]> git.ipfire.org Git - thirdparty/iproute2.git/commit
New IOAM6 encap type for routes
authorJustin Iurman <justin.iurman@uliege.be>
Sun, 1 Aug 2021 12:45:51 +0000 (14:45 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Sep 2021 19:51:44 +0000 (12:51 -0700)
commit2d83c71082460ed3490db32f200959bb76df5bd2
treeab07b5bb24a43b3a54ae98b0bd414db4b70afa65
parentf0b3808afa756a71bf9dd2e7597da16b17892471
New IOAM6 encap type for routes

This patch provides a new encap type for routes to insert an IOAM pre-allocated
trace:

$ ip -6 ro ad fc00::1/128 encap ioam6 trace prealloc type 0x800000 ns 1 size 12 dev eth0

where:
 - "trace" and "prealloc" may appear as useless but just anticipate for future
   implementations of other ioam option types.
 - "type" is a bitfield (=u32) defining the IOAM pre-allocated trace type (see
   the corresponding uapi).
 - "ns" is an IOAM namespace ID attached to the pre-allocated trace.
 - "size" is the trace pre-allocated size in bytes; must be a 4-octet multiple;
   limited size (see IOAM6_TRACE_DATA_SIZE_MAX).

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iproute.c
ip/iproute_lwtunnel.c