History

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

Justin Iurman committed 2 years ago

Commit 273f8c11 parent 924b8be2 files · +63 −8Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ioam6_iptunnel.h+6−0
@@ -50,6 +50,12 @@ enum { · 49 unmodified lines
5050 IOAM6_IPTUNNEL_FREQ_K, /* u32 */
5151 IOAM6_IPTUNNEL_FREQ_N, /* u32 */
5252
53+ /* Tunnel src address.
54+ * For encap,auto modes.
55+ * Optional (automatic if not provided).
56+ */
57+ IOAM6_IPTUNNEL_SRC, /* struct in6_addr */
58+
5359 __IOAM6_IPTUNNEL_MAX,
5460 };
5561