[dpdk-dev] [PATCH] net/qede: fix to increment Tx packets

Rasesh Mody rasesh.mody at cavium.com
Sat Apr 29 02:38:34 CEST 2017


Inadvertently we failed to increment tx_pkts pointer while addressing
coverity issue, this patch fixes that.

Fixes: 41b52b732ec5 ("net/qede/base: fix code flow and remove unused code")
Cc: stable at dpdk.org

Signed-off-by: Rasesh Mody <rasesh.mody at cavium.com>
---
 drivers/net/qede/qede_rxtx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 83e1bc4..baea1bb 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -1471,7 +1471,7 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags)
 		bd3 = NULL;
 		hdr_size = 0;
 
-		mbuf = *tx_pkts;
+		mbuf = *tx_pkts++;
 		assert(mbuf);
 
 		/* Check minimum TX BDS availability against available BDs */
-- 
1.7.10.3



More information about the dev mailing list