From 3ead3080aaf77c984044f1e911a276a54a3c625b Mon Sep 17 00:00:00 2001 From: Ouyang Changchun Date: Tue, 21 Oct 2014 14:59:16 +0800 Subject: [PATCH] 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 --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.20.1