diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-10 14:35:28 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-03-11 17:30:34 +0000 |
commit | a31698bb7401f6e2389c0e805bf280ae52278524 (patch) | |
tree | 05d7940ef2e137cf885941f682a0b39402adb424 /src/vnet/interface.h | |
parent | aa479bb91d0c75b603e6c8828e6fffa0c70c5a0c (diff) |
vlib: refactor node function variants
It allows default variant selection from startup.conf
Type: improvement
Change-Id: Idff95e12dd0c105dab7c905089548b05a6e974e0
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r-- | src/vnet/interface.h | 3 |
1 files changed, 1 insertions, 2 deletions
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; \ } \ |