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
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -50,6 +50,12 @@ enum { · 49 unmodified lines | ||
| 50 | 50 | IOAM6_IPTUNNEL_FREQ_K, /* u32 */ |
| 51 | 51 | IOAM6_IPTUNNEL_FREQ_N, /* u32 */ |
| 52 | 52 | |
| 53 | + /* Tunnel src address. | |
| 54 | + * For encap,auto modes. | |
| 55 | + * Optional (automatic if not provided). | |
| 56 | + */ | |
| 57 | + IOAM6_IPTUNNEL_SRC, /* struct in6_addr */ | |
| 58 | + | |
| 53 | 59 | __IOAM6_IPTUNNEL_MAX, |
| 54 | 60 | }; |
| 55 | 61 | |