ixgbe: fix build with mbuf refcnt disabled
authorOuyang Changchun <changchun.ouyang@intel.com>
Tue, 21 Oct 2014 06:59:16 +0000 (14:59 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 21 Oct 2014 07:51:10 +0000 (09:51 +0200)
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 <changchun.ouyang@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c

index 2236250..a0d3d78 100644 (file)
@@ -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))