aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr.h
diff options
context:
space:
mode:
authorAhmed Abdelsalam <ahabdels@cisco.com>2021-08-24 15:59:39 +0000
committerDamjan Marion <dmarion@me.com>2021-08-26 14:44:28 +0000
commitad8b82d8394e7e711b2c1953b3c273aab4920355 (patch)
tree8dac83ada0b65a1d5749f5bafe9619505d163bf1 /src/vnet/srv6/sr.h
parentc6b6816bed8a4fa2baa396bc0af56e4ac373d713 (diff)
sr: extend the srv6 sid list structure
Extend the srv6 sid list structure with policy type to support different SR policy types Type: feature Signed-off-by: Ahmed Abdelsalam <ahabdels@cisco.com> Change-Id: I6a8cf82b1269e1c46f3757df0047b306f613112b
Diffstat (limited to 'src/vnet/srv6/sr.h')
-rw-r--r--src/vnet/srv6/sr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/srv6/sr.h b/src/vnet/srv6/sr.h
index d47c2132ee4..c84534c8ae7 100644
--- a/src/vnet/srv6/sr.h
+++ b/src/vnet/srv6/sr.h
@@ -75,6 +75,7 @@ typedef struct
u8 *rewrite; /**< Precomputed rewrite header */
u8 *rewrite_bsid; /**< Precomputed rewrite header for bindingSID */
+ u8 policy_type;
u32 egress_fib_table; /**< Egress FIB table for encap packet */
@@ -342,10 +343,9 @@ sr_policy_register_function (vlib_main_t * vm, u8 * fn_name,
sr_p_plugin_callback_t * creation_fn,
sr_p_plugin_callback_t * removal_fn);
-extern int
-sr_policy_add (ip6_address_t * bsid, ip6_address_t * segments,
- u32 weight, u8 behavior, u32 fib_table, u8 is_encap,
- u16 plugin, void *plugin_mem);
+extern int sr_policy_add (ip6_address_t *bsid, ip6_address_t *segments,
+ u32 weight, u8 type, u32 fib_table, u8 is_encap,
+ u16 plugin, void *plugin_mem);
extern int sr_policy_mod (ip6_address_t * bsid, u32 index, u32 fib_table,
u8 operation, ip6_address_t * segments,
u32 sl_index, u32 weight);