aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/configure.ac4
-rw-r--r--src/plugins/dpdk/buffer.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/src/configure.ac b/src/configure.ac
index b5546a7c2e8..d53444b8450 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -127,8 +127,8 @@ AC_DEFUN([CC_CHECK_FLAG],
ac_saved_cflags="$CFLAGS"
CFLAGS="-Werror $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
- [c_flag_check=yes],
- [c_flag_check=no]
+ [cc_flag_check=yes],
+ [cc_flag_check=no]
)
AC_MSG_RESULT([$c_flag_check])
CFLAGS="$ac_saved_cflags"
diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c
index 80c6442f463..34afd7c2a5f 100644
--- a/src/plugins/dpdk/buffer.c
+++ b/src/plugins/dpdk/buffer.c
@@ -693,10 +693,10 @@ vlib_buffer_alloc_from_free_list_cb_t __clib_weak
dpdk_buffer_alloc_from_free_list_avx512;
vlib_buffer_alloc_from_free_list_cb_t __clib_weak
dpdk_buffer_alloc_from_free_list_avx2;
-vlib_buffer_free_cb_t __clib_weak dpdk_buffer_free_cb_avx512;
-vlib_buffer_free_cb_t __clib_weak dpdk_buffer_free_cb_avx2;
-vlib_buffer_free_no_next_cb_t __clib_weak dpdk_buffer_free_no_next_cb_avx512;
-vlib_buffer_free_no_next_cb_t __clib_weak dpdk_buffer_free_no_next_cb_avx2;
+vlib_buffer_free_cb_t __clib_weak dpdk_buffer_free_avx512;
+vlib_buffer_free_cb_t __clib_weak dpdk_buffer_free_avx2;
+vlib_buffer_free_no_next_cb_t __clib_weak dpdk_buffer_free_no_next_avx512;
+vlib_buffer_free_no_next_cb_t __clib_weak dpdk_buffer_free_no_next_avx2;
static void __clib_constructor
dpdk_input_multiarch_select (void)
@@ -707,16 +707,16 @@ dpdk_input_multiarch_select (void)
cb->vlib_buffer_alloc_cb = dpdk_buffer_alloc_avx512;
cb->vlib_buffer_alloc_from_free_list_cb =
dpdk_buffer_alloc_from_free_list_avx512;
- cb->vlib_buffer_free_cb = dpdk_buffer_free_cb_avx512;
- cb->vlib_buffer_free_no_next_cb = dpdk_buffer_free_no_next_cb_avx512;
+ cb->vlib_buffer_free_cb = dpdk_buffer_free_avx512;
+ cb->vlib_buffer_free_no_next_cb = dpdk_buffer_free_no_next_avx512;
}
else if (dpdk_buffer_alloc_avx2 && clib_cpu_supports_avx2 ())
{
cb->vlib_buffer_alloc_cb = dpdk_buffer_alloc_avx2;
cb->vlib_buffer_alloc_from_free_list_cb =
dpdk_buffer_alloc_from_free_list_avx2;
- cb->vlib_buffer_free_cb = dpdk_buffer_free_cb_avx2;
- cb->vlib_buffer_free_no_next_cb = dpdk_buffer_free_no_next_cb_avx2;
+ cb->vlib_buffer_free_cb = dpdk_buffer_free_avx2;
+ cb->vlib_buffer_free_no_next_cb = dpdk_buffer_free_no_next_avx2;
}
}
#endif