From a31698bb7401f6e2389c0e805bf280ae52278524 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 10 Mar 2021 14:35:28 +0100 Subject: vlib: refactor node function variants It allows default variant selection from startup.conf Type: improvement Change-Id: Idff95e12dd0c105dab7c905089548b05a6e974e0 Signed-off-by: Damjan Marion --- src/vnet/interface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vnet/interface.h') diff --git a/src/vnet/interface.h b/src/vnet/interface.h index 83abea4593e..9c5844257d8 100644 --- a/src/vnet/interface.h +++ b/src/vnet/interface.h @@ -326,8 +326,7 @@ static __clib_unused vnet_device_class_t __clib_unused_##x extern vnet_device_class_t devclass; \ vlib_node_fn_registration_t *r; \ r = &CLIB_MARCH_SFX (devclass##_tx_fn_registration); \ - r->priority = CLIB_MARCH_FN_PRIORITY (); \ - r->name = CLIB_MARCH_VARIANT_STR; \ + r->march_variant = CLIB_MARCH_SFX (CLIB_MARCH_VARIANT_TYPE); \ r->next_registration = devclass.tx_fn_registrations; \ devclass.tx_fn_registrations = r; \ } \ -- cgit 1.2.3-korg