From: Ouyang Changchun Date: Tue, 21 Oct 2014 06:59:16 +0000 (+0800) Subject: ixgbe: fix build with mbuf refcnt disabled X-Git-Tag: spdx-start~10259 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3ead3080aaf77c984044f1e911a276a54a3c625b;p=dpdk.git ixgbe: fix build with mbuf refcnt disabled An error has been introduced by commit 1f22652ca8869 ("fix perf regression due to moved pool ptr"). Fix the case where RTE_MBUF_REFCNT is disabled. Signed-off-by: Changchun Ouyang Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index 2236250638..a0d3d78232 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -541,7 +541,7 @@ ixgbe_tx_free_bufs(struct igb_tx_queue *txq) #ifdef RTE_MBUF_REFCNT m = __rte_pktmbuf_prefree_seg(txep[i].mbuf); #else - m = txep[i]->mbuf; + m = txep[i].mbuf; #endif if (likely(m != NULL)) { if (likely(m->pool == free[0]->pool))