aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/node_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/node_init.c')
-rw-r--r--src/vlib/node_init.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/vlib/node_init.c b/src/vlib/node_init.c
index 232eeb35e3c..265e88f525c 100644
--- a/src/vlib/node_init.c
+++ b/src/vlib/node_init.c
@@ -40,7 +40,6 @@
#include <sys/types.h>
#include <fcntl.h>
#include <vlib/vlib.h>
-#include <vnet/vnet.h>
typedef struct _vlib_node_march_variant
{
@@ -90,9 +89,9 @@ unformat_vlib_node_variant (unformat_input_t * input, va_list * args)
}
static_always_inline void
-vlib_update_nr_variant_default (vlib_node_fn_registration_t * fnr,
- u8 * variant)
+vlib_update_nr_variant_default (vlib_node_registration_t *nr, u8 *variant)
{
+ vlib_node_fn_registration_t *fnr = nr->node_fn_registrations;
vlib_node_fn_registration_t *p_reg = 0;
vlib_node_fn_registration_t *v_reg = 0;
u32 tmp;
@@ -128,8 +127,6 @@ vlib_early_node_config (vlib_main_t * vm, unformat_input_t * input)
{
clib_error_t *error = 0;
vlib_node_registration_t *nr, **all;
- vnet_device_class_t *c;
- vnet_main_t *vnm = vnet_get_main ();
unformat_input_t sub_input;
uword *hash = 0, *p;
u8 *variant = 0;
@@ -164,20 +161,10 @@ vlib_early_node_config (vlib_main_t * vm, unformat_input_t * input)
nr = vm->node_main.node_registrations;
while (nr)
{
- vlib_update_nr_variant_default (nr->node_fn_registrations,
- variant);
+ vlib_update_nr_variant_default (nr, variant);
nr = nr->next_registration;
}
- /* also apply it to interfaces */
- c = vnm->device_class_registrations;
- while (c)
- {
- vlib_update_nr_variant_default (c->tx_fn_registrations,
- variant);
- c = c->next_class_registration;
- }
-
vec_free (variant);
}
}
@@ -205,8 +192,7 @@ vlib_early_node_config (vlib_main_t * vm, unformat_input_t * input)
"please specify a valid node variant");
vec_add1 (variant, 0);
- vlib_update_nr_variant_default (nr->node_fn_registrations,
- variant);
+ vlib_update_nr_variant_default (nr, variant);
vec_free (variant);
}