diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-23 17:36:56 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-23 18:40:16 +0000 |
commit | f87acfaf739f7b6361d6299549a897b03b0cc8c6 (patch) | |
tree | 6107b984b0a4ae9b6365eb08e307b377b4266ba5 /src/vlib/node_funcs.h | |
parent | ba465b970e88d02467838bd9c272cb6d5cd653ec (diff) |
vppinfra: change vlib_register_node so it takes format string for node name
This allows specifying both c string and vector for node name
and removes need for crafting temporary string.
Type: improvement
Change-Id: I0b016cd70aeda0f68eb6f9171c5152f303be7369
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/node_funcs.h')
-rw-r--r-- | src/vlib/node_funcs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/node_funcs.h b/src/vlib/node_funcs.h index b864fec11a1..61a085730fd 100644 --- a/src/vlib/node_funcs.h +++ b/src/vlib/node_funcs.h @@ -1211,7 +1211,8 @@ void vlib_node_rename (vlib_main_t * vm, u32 node_index, char *fmt, ...); /* Register new packet processing node. Nodes can be registered dynamically via this call or statically via the VLIB_REGISTER_NODE macro. */ -u32 vlib_register_node (vlib_main_t * vm, vlib_node_registration_t * r); +u32 vlib_register_node (vlib_main_t *vm, vlib_node_registration_t *r, + char *fmt, ...); /* Register all node function variants */ void vlib_register_all_node_march_variants (vlib_main_t *vm); |