]> 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)
committerDavid Ahern <dsahern@kernel.org>
Mon, 2 Aug 2021 17:33:31 +0000 (11:33 -0600)
commit32f4969d44a350eaebae4cfa2c6c7d901b6a7c61
treeedd8ff8ca5a374e2e234774eb3458fe95ceb7876
parent29098125834c2e160c1c2e17980db022f54c7cac
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