ip: reassembly - enable registering custom next nodes for v6 07/43507/3
authorHadi Rayan Al-Sandid <[email protected]>
Fri, 1 Aug 2025 10:34:11 +0000 (12:34 +0200)
committerHadi Rayan Al-Sandid <[email protected]>
Fri, 29 Aug 2025 09:12:02 +0000 (09:12 +0000)
This function adds the ability to register next
nodes for the custom ip6 full-reassembly node,
similarly to custom v4.

Type: improvement
Change-Id: I65fd323192db0b96bb7ca301f8c890a4683f48fe
Signed-off-by: Hadi Rayan Al-Sandid <[email protected]>
src/vnet/ip/reass/ip6_full_reass.c
src/vnet/ip/reass/ip6_full_reass.h

index 2764798..e70c269 100644 (file)
@@ -1553,6 +1553,13 @@ VLIB_REGISTER_NODE (ip6_full_reass_node_custom) = {
 };
 
 #ifndef CLIB_MARCH_VARIANT
+uword
+ip6_full_reass_custom_register_next_node (uword node_index)
+{
+  return vlib_node_add_next (vlib_get_main (),
+                            ip6_full_reass_node_custom.index, node_index);
+}
+
 static u32
 ip6_full_reass_get_nbuckets ()
 {
index f66cb67..d06d462 100644 (file)
@@ -46,6 +46,8 @@ vnet_api_error_t ip6_full_reass_enable_disable (u32 sw_if_index,
 int ip6_full_reass_enable_disable_with_refcnt (u32 sw_if_index,
                                               int is_enable);
 
+uword ip6_full_reass_custom_register_next_node (uword node_index);
+
 void ip6_local_full_reass_enable_disable (int enable);
 int ip6_local_full_reass_enabled ();
 #endif /* __included_ip6_full_reass_h */