diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-03-20 18:53:21 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-09-11 17:35:01 +0200 |
| commit | 7c27ab79ecf6727920bb17cef91ec0ede7396a49 (patch) | |
| tree | 27217252cc5937a1e5896ee405b6c7bdda3d20cc /include | |
| parent | d48f265e1555f7406d7225012f49a615c818068c (diff) | |
include: Update `seg6_local.h` to last kernel
Update `seg6_local.h` to the last kernel version, required to support
SRv6 flavors.
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/seg6_local.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/seg6_local.h b/include/linux/seg6_local.h index 6788b58799..401c8b0c6e 100644 --- a/include/linux/seg6_local.h +++ b/include/linux/seg6_local.h @@ -23,6 +23,7 @@ enum { SEG6_LOCAL_BPF, SEG6_LOCAL_VRFTABLE, SEG6_LOCAL_COUNTERS, + SEG6_LOCAL_FLAVORS, __SEG6_LOCAL_MAX, }; #define SEG6_LOCAL_MAX (__SEG6_LOCAL_MAX - 1) @@ -105,4 +106,27 @@ enum { #define SEG6_LOCAL_CNT_MAX (__SEG6_LOCAL_CNT_MAX - 1) +/* SRv6 End* Flavor attributes */ +enum { + SEG6_LOCAL_FLV_UNSPEC, + SEG6_LOCAL_FLV_OPERATION, + SEG6_LOCAL_FLV_LCBLOCK_BITS, + SEG6_LOCAL_FLV_LCNODE_FN_BITS, + __SEG6_LOCAL_FLV_MAX, +}; + +#define SEG6_LOCAL_FLV_MAX (__SEG6_LOCAL_FLV_MAX - 1) + +/* Designed flavor operations for SRv6 End* Behavior */ +enum { + SEG6_LOCAL_FLV_OP_UNSPEC, + SEG6_LOCAL_FLV_OP_PSP, + SEG6_LOCAL_FLV_OP_USP, + SEG6_LOCAL_FLV_OP_USD, + SEG6_LOCAL_FLV_OP_NEXT_CSID, + __SEG6_LOCAL_FLV_OP_MAX +}; + +#define SEG6_LOCAL_FLV_OP_MAX (__SEG6_LOCAL_FLV_OP_MAX - 1) + #endif |
