From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 92B355A0C for ; Wed, 22 Jul 2015 11:50:13 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 22 Jul 2015 02:50:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,522,1432623600"; d="scan'208";a="752119575" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2015 02:50:12 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t6M9oB67003721 for ; Wed, 22 Jul 2015 10:50:11 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t6M9oBaS011986 for ; Wed, 22 Jul 2015 10:50:11 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id t6M9oB6R011982 for dev@dpdk.org; Wed, 22 Jul 2015 10:50:11 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Wed, 22 Jul 2015 10:50:11 +0100 Message-Id: <1437558611-11952-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] ixgbe: fix compilation issue when IXGBE_RX_ALLOW_BULK_ALLOC is disabled 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: Wed, 22 Jul 2015 09:50:14 -0000 ixgbe_recv_pkts_lro uses field rx_free_trigger in structure ixgbe_rx_queue, but that field is only defined if IXGBE_RX_ALLOW_BULK_ALLOC is enabled, so even though that field is not used when it is disabled, compiler complains about it. Therefore, the lines of code that use that field have been ifdef. Fixes: 8eecb329 ("ixgbe: add LRO support") Signed-off-by: Pablo de Lara --- drivers/net/ixgbe/ixgbe_rxtx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 9b2d637..af7e222 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -1707,7 +1707,9 @@ next_desc: rx_mbuf_alloc_failed++; break; } - } else if (nb_hold > rxq->rx_free_thresh) { + } +#ifdef RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC + else if (nb_hold > rxq->rx_free_thresh) { uint16_t next_rdt = rxq->rx_free_trigger; if (!ixgbe_rx_alloc_bufs(rxq, false)) { @@ -1725,6 +1727,7 @@ next_desc: break; } } +#endif nb_hold++; rxe = &sw_ring[rx_id]; -- 2.4.2