From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 1B0FC2E8F for ; Mon, 21 Mar 2016 23:43:51 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id p65so140353257wmp.0 for ; Mon, 21 Mar 2016 15:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=9L+AfV5eTNnW9KCzOprpnwYpMp+inuFETQ5mi71FJJo=; b=cKxA3COQItErBDD5yYKwU37n5rpxiAHtXl7B+HrF0JN2f+6cEG6iTO0SbMwq4asJ9i dxet+uXxAYPR5nzmIY3i24yHVnfXZBgNypAhz4xZfJ9hq9Jo/8jhRwx/A7q8bgrz4Va3 Q41Tv/gTQ1CyYHSiNEzky74cu3+hjcuci2LVSGgkH2YjHKMXGWTRX/HDibBk/fft/qbP F4XKhQSxQbDliLH0TXd4k8nNRTdSZmzhFs5/T/FlPkhySBdRub6+dTl0yeAnBDrEETF8 u8tQDN0qjn1zK2WH8dSwGt0X1T1yi/PbvWDYXz8HpCngis1FsMooxGwKD8H6UtDHBgws EPPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9L+AfV5eTNnW9KCzOprpnwYpMp+inuFETQ5mi71FJJo=; b=YOD1BBf4RLdwhxnjWkCnL+mJ18QakgiUtdREN67j4Km9eXk5DVAdlydUp+pOj+Hfj4 zP0WUKlubuhWZSI3opoy1QcrSIx5ExM6oylTAfRohp4lMbByQBLu3kCJg1yg0X+DsZZ4 QaM2Bw4aMADA/W+z56fvOu+3dNR8xJSfOOuMlcvphN/Nc/SgKfQF8udyrcRHVlHjh8an po4aLA4Whce57vEu7eo/xE1ze7BWzRV3G63HHvyzqghViToq/GBBEKHd1t23n3CfvHch hRQg4Rr+z13K377m7K/TONfiPAFs6gx2xMQDrHsQ5FkBJPR2HZDd5fuxRljItj3qGK1q n2MA== X-Gm-Message-State: AD7BkJI1Fv49BhwJDULw7+NKoIxEkzuGfw0EXAezj6V3V6rE3yQehkXo/jn8ck5mjj4W4tu+ X-Received: by 10.28.101.5 with SMTP id z5mr15403764wmb.59.1458600230925; Mon, 21 Mar 2016 15:43:50 -0700 (PDT) Received: from XPS13.localdomain (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id ks5sm27409828wjb.13.2016.03.21.15.43.49 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2016 15:43:50 -0700 (PDT) From: Thomas Monjalon To: ian.betts@intel.com Cc: dev@dpdk.org Date: Mon, 21 Mar 2016 23:41:55 +0100 Message-Id: <1458600115-3969-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] examples/performance-thread: fix build without SSE4.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2016 22:43:51 -0000 clang reports these errors: error: too many arguments to function call, expected 2, have 3 examples/performance-thread/l3fwd-thread/main.c:1220:1: note: 'l3fwd_simple_forward' declared here examples/l3fwd/main.c:550:1: error: unused function 'send_packetsx4' The function is used only when ENABLE_MULTI_BUFFER_OPTIMIZE is 1. Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app") Signed-off-by: Thomas Monjalon --- examples/performance-thread/l3fwd-thread/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c index aa1fdc3..15c0a4d 100644 --- a/examples/performance-thread/l3fwd-thread/main.c +++ b/examples/performance-thread/l3fwd-thread/main.c @@ -655,7 +655,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(uint8_t port, struct rte_mbuf *m[], uint32_t num) @@ -1838,12 +1839,12 @@ process_burst(struct rte_mbuf *pkts_burst[MAX_PKT_BURST], int nb_rx, for (j = 0; j < (nb_rx - PREFETCH_OFFSET); j++) { rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[ j + PREFETCH_OFFSET], void *)); - l3fwd_simple_forward(pkts_burst[j], portid, qconf); + l3fwd_simple_forward(pkts_burst[j], portid); } /* Forward remaining prefetched packets */ for (; j < nb_rx; j++) - l3fwd_simple_forward(pkts_burst[j], portid, qconf); + l3fwd_simple_forward(pkts_burst[j], portid); #endif /* ENABLE_MULTI_BUFFER_OPTIMIZE */ -- 2.7.0