From: Rich Lane Date: Wed, 23 Dec 2015 08:08:00 +0000 (-0800) Subject: i40e: fix inverted check for no refcount X-Git-Tag: spdx-start~7391 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=097e920c32bf19cf918cc071525f33b0abdeebaf;p=dpdk.git i40e: fix inverted check for no refcount The no-refcount path was being taken without the application opting in to it. Fixes: 4861cde46116 ("i40e: new poll mode driver") Reported-by: Mike Stolarchuk Signed-off-by: Rich Lane Acked-by: Helin Zhang --- diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index c10eeff93c..d777c9bd3b 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -1756,7 +1756,7 @@ i40e_tx_free_bufs(struct i40e_tx_queue *txq) for (i = 0; i < txq->tx_rs_thresh; i++) rte_prefetch0((txep + i)->mbuf); - if (!(txq->txq_flags & (uint32_t)ETH_TXQ_FLAGS_NOREFCOUNT)) { + if (txq->txq_flags & (uint32_t)ETH_TXQ_FLAGS_NOREFCOUNT) { for (i = 0; i < txq->tx_rs_thresh; ++i, ++txep) { rte_mempool_put(txep->mbuf->pool, txep->mbuf); txep->mbuf = NULL;