From: Thomas Monjalon Date: Wed, 3 Feb 2016 18:56:38 +0000 (+0100) Subject: examples/l3fwd: fix build without SSE4.1 X-Git-Tag: spdx-start~7633 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a00341bbe59fd411e3da669d046262b6f15a70d2;p=dpdk.git 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 Acked-by: Pablo de Lara --- diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index c35926d923..410f72dd4f 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)