From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhe Tao Subject: =?utf-8?q?=5BPATCH=5D_i40e=3A_fix_build_issue_for_RX_s?= =?utf-8?q?et_function?= Date: Wed, 16 Mar 2016 18:01:56 +0800 Message-ID: <1458122516-32084-1-git-send-email-zhe.tao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: zhe.tao@intel.com To: dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 2DF3F5593 for ; Wed, 16 Mar 2016 11:02:10 +0100 (CET) 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" Issue: When define CONFIG_RTE_LIBTRE_I40E_RX_ALLOW_BULK_ALLOC as n in config fil= e, there will be a build error: =E6=85=BD40e_recv_pkts_bulk_alloc' undeclared=20 Now DPDK i40e PMD use the Macro variable to choose whether to define the related bulk recv functions, but for selection of the RX function,PMD onl= y depends on a C variable, which will cause the inconsistency and lead to t= he build error which will tell us the bulk recv function is not defined. =20 Fixes: 8e109464 (i40e: allow vector Rx and Tx usage) Signed-off-by: Zhe Tao --- drivers/net/i40e/i40e_rxtx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 8931b8e..1488f2f 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -1175,6 +1175,14 @@ i40e_recv_pkts_bulk_alloc(void *rx_queue, =20 return nb_rx; } +#else +static uint16_t +i40e_recv_pkts_bulk_alloc(void __rte_unused *rx_queue, + struct rte_mbuf __rte_unused **rx_pkts, + uint16_t __rte_unused nb_pkts) +{ + return 0; +} #endif /* RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC */ =20 uint16_t --=20 2.1.4