]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-ioam-encap'
authorDavid S. Miller <davem@davemloft.net>
Mon, 4 Oct 2021 11:53:36 +0000 (12:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Oct 2021 11:53:36 +0000 (12:53 +0100)
commit0df9c1836578bc597b16af6d02315e7f12f3e5e3
treee44cc36414bb258e061d1b964e6e75b7a21f0042
parent70b2c5281aee77f77b6faf99cb20eb944797b90d
parentfd6105a61ad92164e1bee46775e333997bdde618
Merge branch 'ipv6-ioam-encap'

Justin Iurman says:

====================
Support for the ip6ip6 encapsulation of IOAM

v2:
 - add prerequisite patches
 - keep uapi backwards compatible by adding two new attributes
 - add more comments to document the ioam6_iptunnel uapi

In the current implementation, IOAM can only be inserted directly (i.e., only
inside packets generated locally) by default, to be compliant with RFC8200.

This patch adds support for in-transit packets and provides the ip6ip6
encapsulation of IOAM (RFC8200 compliant). Therefore, three ioam6 encap modes
are defined:

 - inline: directly inserts IOAM inside packets (by default).

 - encap:  ip6ip6 encapsulation of IOAM inside packets.

 - auto:   either inline mode for packets generated locally or encap mode for
           in-transit packets.

With current iproute2 implementation, it is configured this way:

$ ip -6 r [...] encap ioam6 trace prealloc [...]

The old syntax does not change (for backwards compatibility) and implicitly uses
the inline mode. With the new syntax, an encap mode can be specified:

(inline mode)
$ ip -6 r [...] encap ioam6 mode inline trace prealloc [...]

(encap mode)
$ ip -6 r [...] encap ioam6 mode encap tundst fc00::2 trace prealloc [...]

(auto mode)
$ ip -6 r [...] encap ioam6 mode auto tundst fc00::2 trace prealloc [...]

A tunnel destination address must be configured when using the encap mode or the
auto mode.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>