Description: backport of dpdk 16.04-rc1 fix for LP: #1559981 Forwarded: n/a (already upstream) Author: Christian Ehrhardt Last-Update: 2016-03-20 From 097e920c32bf19cf918cc071525f33b0abdeebaf Mon Sep 17 00:00:00 2001 From: Rich Lane Date: Wed, 23 Dec 2015 00:08:00 -0800 Subject: [PATCH] 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 --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: dpdk/drivers/net/i40e/i40e_rxtx.c =================================================================== --- dpdk.orig/drivers/net/i40e/i40e_rxtx.c +++ dpdk/drivers/net/i40e/i40e_rxtx.c @@ -1762,7 +1762,7 @@ i40e_tx_free_bufs(struct i40e_tx_queue * 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;