summaryrefslogtreecommitdiff
path: root/examples/l3fwd
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-02-03 19:56:38 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-02-16 07:33:38 +0100
commita00341bbe59fd411e3da669d046262b6f15a70d2 (patch)
treeb7ebd729fcada36fae0beca58eaba6721446141a /examples/l3fwd
parent64502fab90ce1a3150c9db6e1c2c27201945e74d (diff)
downloaddpdk-a00341bbe59fd411e3da669d046262b6f15a70d2.zip
dpdk-a00341bbe59fd411e3da669d046262b6f15a70d2.tar.gz
dpdk-a00341bbe59fd411e3da669d046262b6f15a70d2.tar.xz
examples/l3fwd: fix build without SSE4.1
clang reports this error: examples/l3fwd/main.c:550:1: error: unused function 'send_packetsx4' The function is used only when ENABLE_MULTI_BUFFER_OPTIMIZE is 1. Fixes: 96ff445371e0 ("examples/l3fwd: reorganise and optimize LPM code path") Fixes: 6f1c1e28d98e ("examples/l3fwd: fix build with exact-match enabled") Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'examples/l3fwd')
-rw-r--r--examples/l3fwd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
index c35926d..410f72d 100644
--- a/examples/l3fwd/main.c
+++ b/examples/l3fwd/main.c
@@ -545,7 +545,8 @@ send_single_packet(struct rte_mbuf *m, uint8_t port)
return 0;
}
-#if (APP_LOOKUP_METHOD == APP_LOOKUP_LPM)
+#if ((APP_LOOKUP_METHOD == APP_LOOKUP_LPM) && \
+ (ENABLE_MULTI_BUFFER_OPTIMIZE == 1))
static inline __attribute__((always_inline)) void
send_packetsx4(struct lcore_conf *qconf, uint8_t port,
struct rte_mbuf *m[], uint32_t num)