From 646a23812303a5a222adefb50c27e9fd47f106ff Mon Sep 17 00:00:00 2001 From: Hadi Rayan Al-Sandid Date: Fri, 1 Aug 2025 12:34:11 +0200 Subject: [PATCH] ip: reassembly - enable registering custom next nodes for v6 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 --- src/vnet/ip/reass/ip6_full_reass.c | 7 +++++++ src/vnet/ip/reass/ip6_full_reass.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/vnet/ip/reass/ip6_full_reass.c b/src/vnet/ip/reass/ip6_full_reass.c index 27647985877..e70c2698c97 100644 --- a/src/vnet/ip/reass/ip6_full_reass.c +++ b/src/vnet/ip/reass/ip6_full_reass.c @@ -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 () { diff --git a/src/vnet/ip/reass/ip6_full_reass.h b/src/vnet/ip/reass/ip6_full_reass.h index f66cb67d796..d06d462f260 100644 --- a/src/vnet/ip/reass/ip6_full_reass.h +++ b/src/vnet/ip/reass/ip6_full_reass.h @@ -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 */ -- 2.16.6