summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-11-14 15:21:19 +0100
committerChris Luke <chris_luke@comcast.com>2017-11-14 18:07:47 +0000
commitbf024e65a1ddb2b9e8b1e853a82dc6f8be9426ea (patch)
tree899c0557eaba040998441d603463e36d4c0218ce /src
parent87bd96aa4ddf2f777f8b972062c205e27addbc4a (diff)
Fix typos in configure.ac and dpdk/buffer.c
Change-Id: I74ff693315a3ffc7aa2640f25d906ca0d6da6bc5 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-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