Skip to contentSkip to conversation

i40e: fix inverted check for ETH_TXQ_FLAGS_NOREFCOUNT

PATCH Applied Rich Lane 3 participants 3 messages Dec 23, 2015 – Feb 10, 2016 Network drivers

lore
Share & tools
lore

Rich Lane

author
#0 lore raw

PATCH 1/1 i40e: fix inverted check for ETH_TXQ_FLAGS_NOREFCOUNT

The no-refcount path was being taken without the application opting in to it.

---
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_rxtx.c +1 -1
index 39d94ec..d0bdeb9 100644
@@ -1762,7 +1762,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;
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Rich Lane [mailto:[email protected]]
Sent: Wednesday, December 23, 2015 4:08 PM
To: [email protected]
Cc: Zhang, Helin
Subject: [PATCH] i40e: fix inverted check for ETH_TXQ_FLAGS_NOREFCOUNT

Quoted 4 lines

The no-refcount path was being taken without the application opting in to it.

Thanks for the good catch!

#2 lore raw
Quoted 9 lines · Helin
Quoted 9 lines

-----Original Message-----
From: Rich Lane [mailto:[email protected]]
Sent: Wednesday, December 23, 2015 4:08 PM
To: [email protected]
Cc: Zhang, Helin
Subject: [PATCH] i40e: fix inverted check for ETH_TXQ_FLAGS_NOREFCOUNT

Quoted 7 lines
Quoted 4 lines

The no-refcount path was being taken without the application opting in to it.

Thanks for the good catch!

Applied to dpdk-next-net/rel_16_04

Thanks,
/Bruce