diff options
author | Damjan Marion <damarion@cisco.com> | 2017-11-23 19:13:05 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2017-11-23 19:20:09 +0100 |
commit | 122f7e20f379227d6688689c8ab0b199bde51974 (patch) | |
tree | 66503a29f3c43ca12c8d2b816fe9d5b4ccfb5957 /src | |
parent | 7172cec2384e107a8127a2cb8cc346ef9216d425 (diff) |
memif: fix input node multiversion constructor
Change-Id: I498ed1162eadf3eff2543f1ec02a9b1e5fdc05d8
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/memif/node.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c index 1c34922d331..a5187ad7515 100644 --- a/src/plugins/memif/node.c +++ b/src/plugins/memif/node.c @@ -505,17 +505,17 @@ VLIB_REGISTER_NODE (memif_input_node) = { .error_strings = memif_input_error_strings, }; -vlib_node_function_t __clib_weak memif_input_avx512; -vlib_node_function_t __clib_weak memif_input_avx2; +vlib_node_function_t __clib_weak memif_input_fn_avx512; +vlib_node_function_t __clib_weak memif_input_fn_avx2; #if __x86_64__ static void __clib_constructor memif_input_multiarch_select (void) { - if (memif_input_avx512 && clib_cpu_supports_avx512f ()) - memif_input_node.function = memif_input_avx512; - else if (memif_input_avx2 && clib_cpu_supports_avx2 ()) - memif_input_node.function = memif_input_avx2; + if (memif_input_fn_avx512 && clib_cpu_supports_avx512f ()) + memif_input_node.function = memif_input_fn_avx512; + else if (memif_input_fn_avx2 && clib_cpu_supports_avx2 ()) + memif_input_node.function = memif_input_fn_avx2; } #endif #endif |