From bf024e65a1ddb2b9e8b1e853a82dc6f8be9426ea Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 14 Nov 2017 15:21:19 +0100 Subject: Fix typos in configure.ac and dpdk/buffer.c Change-Id: I74ff693315a3ffc7aa2640f25d906ca0d6da6bc5 Signed-off-by: Damjan Marion --- src/configure.ac | 4 ++-- src/plugins/dpdk/buffer.c | 16 ++++++++-------- 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 -- cgit 1.2.3-korg