]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Define default values for SRv6 flavors attrs
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Mon, 20 Mar 2023 20:48:27 +0000 (21:48 +0100)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Mon, 11 Sep 2023 15:35:03 +0000 (17:35 +0200)
When installing a local SID in the Linux kernel, `lcblock_len` and
`lcnode_fn_len` Netlink attributes are optional. When omitted, the
kernel uses the default values: lcblock_len=32 and lcnode_fn_len=16.
Let's use the same default values in FRR.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
lib/srv6.h

index 111963daa27ca3d26b0192edaf8839e51a42a690..7c8c6b4a6596e3a47c00390459d86b4d661bed54 100644 (file)
@@ -30,6 +30,10 @@ extern "C" {
 #define UNSET_SRV6_FLV_OP(OPS,OP)      (OPS) &= ~(1 << OP)
 #define RESET_SRV6_FLV_OP(OPS)         (OPS) = 0
 
+/* SRv6 Flavors default values */
+#define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCBLOCK_LEN 32
+#define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCNODE_FN_LEN 16
+
 enum seg6_mode_t {
        INLINE,
        ENCAP,