mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-13 12:30:22 -04:00
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>
This commit is contained in:
committed by
Paolo Abeni
parent
924b8bea87
commit
273f8c1420
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user