From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/l3fwd: fix compilation issue when using exact-match Date: Sun, 09 Aug 2015 11:54:22 +0200 Message-ID: <8423022.rae0ANLxGt@xps13> References: <1438938514-10304-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Pablo de Lara Return-path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id 7A8EA5A45 for ; Sun, 9 Aug 2015 11:55:37 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so114833332wib.1 for ; Sun, 09 Aug 2015 02:55:37 -0700 (PDT) In-Reply-To: <1438938514-10304-1-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Pablo, 2015-08-07 10:08, Pablo de Lara: > L3fwd was trying to use an inexistent function "simple_ipv6_fwd_4pkts", > instead it should be "simple_ipv6_fwd_8pkts". > > Fixes: 80fcb4d4 ("examples/l3fwd: increase lookup burst size to 8") There are 3 things wrong here. 1/ We must absolutely avoid compile-time paths: #if (ENABLE_MULTI_BUFFER_OPTIMIZE == 1) #if (APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) It makes test coverage too hard to track. 2/ When replacing a function, grepping it is a must have. -simple_ipv6_fwd_4pkts(struct rte_mbuf* m[4], uint8_t portid, struct lcore_conf *qconf) +simple_ipv6_fwd_8pkts(struct rte_mbuf *m[8], uint8_t portid, struct lcore_conf *qconf) So this change would be straight forward: > - simple_ipv6_fwd_4pkts(&pkts_burst[j], > + simple_ipv6_fwd_8pkts(&pkts_burst[j], 3/ The above commit makes also this wrong replacement: - simple_ipv4_fwd_4pkts(&pkts_burst[j], + simple_ipv8_fwd_4pkts(&pkts_burst[j], It is still not fixed. Please send a v2 for this last typo. Thanks