aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-06-14 08:57:39 +0300
committerEyal Bari <ebari@cisco.com>2018-06-14 08:57:39 +0300
commit93a6f25cee919e0544af370cba801dc83a004822 (patch)
tree7e0f5d746bc572b016f4b963052ab8bc22b71523 /src/vnet/vxlan
parent313f7e2feac232ac841ad8a9d5e21e8387514803 (diff)
vxlan:use VLIB_NODE_FN for multiarch selection
Change-Id: Ic98945fa1ffcc73e0b239ff5cc11d45e7318613e Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/vxlan')
-rw-r--r--src/vnet/vxlan/decap.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/vnet/vxlan/decap.c b/src/vnet/vxlan/decap.c
index e65091941bc..abd7bad0ed8 100644
--- a/src/vnet/vxlan/decap.c
+++ b/src/vnet/vxlan/decap.c
@@ -1042,8 +1042,7 @@ vxlan_err_code (u8 ip_err0, u8 udp_err0, u8 csum_err0)
return error0;
}
-uword
-CLIB_MULTIARCH_FN (vxlan_flow_input) (vlib_main_t * vm,
+VLIB_NODE_FN (vxlan4_flow_input_node) (vlib_main_t * vm,
vlib_node_runtime_t * node,
vlib_frame_t * f)
{
@@ -1287,7 +1286,6 @@ CLIB_MULTIARCH_FN (vxlan_flow_input) (vlib_main_t * vm,
#ifndef CLIB_MULTIARCH_VARIANT
VLIB_REGISTER_NODE (vxlan4_flow_input_node) = {
.name = "vxlan-flow-input",
- .function = vxlan_flow_input,
.type = VLIB_NODE_TYPE_INTERNAL,
.vector_size = sizeof (u32),
@@ -1305,17 +1303,3 @@ VLIB_REGISTER_NODE (vxlan4_flow_input_node) = {
};
#endif
/* *INDENT-ON* */
-
-vlib_node_function_t __clib_weak vxlan_flow_input_avx512;
-vlib_node_function_t __clib_weak vxlan_flow_input_avx2;
-
-#if __x86_64__
-static void __clib_constructor
-vxlan_flow_input_multiarch_select (void)
-{
- if (vxlan_flow_input_avx512 && clib_cpu_supports_avx512f ())
- vxlan4_flow_input_node.function = vxlan_flow_input_avx512;
- else if (vxlan_flow_input_avx2 && clib_cpu_supports_avx2 ())
- vxlan4_flow_input_node.function = vxlan_flow_input_avx2;
-}
-#endif