Skip to contentSkip to conversation

net/iavf: fix Rx issue for scalar Rx functions

PATCH Applied [email protected] 3 participants 3 messages Jun 1, 2021 – Jun 7, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/iavf: fix Rx issue for scalar Rx functions

From: Beilei Xing <[email protected]>

The new allocated mbuf should be updated to the SW ring.

Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
Fixes b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal path")
---
 drivers/net/iavf/iavf_rxtx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/iavf/iavf_rxtx.c +4 -0
index 6a713df828..3aad050f19 100644
@@ -1218,6 +1218,7 @@ iavf_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
 		rxd = *rxdp;
 		nb_hold++;
 		rxe = rxq->sw_ring[rx_id];
+		rxq->sw_ring[rx_id] = nmb;
 		rx_id++;
 		if (unlikely(rx_id == rxq->nb_rx_desc))
 			rx_id = 0;
@@ -1323,6 +1324,7 @@ iavf_recv_pkts_flex_rxd(void *rx_queue,
 		rxd = *rxdp;
 		nb_hold++;
 		rxe = rxq->sw_ring[rx_id];
+		rxq->sw_ring[rx_id] = nmb;
 		rx_id++;
 		if (unlikely(rx_id == rxq->nb_rx_desc))
 			rx_id = 0;
@@ -1414,6 +1416,7 @@ iavf_recv_scattered_pkts_flex_rxd(void *rx_queue, struct rte_mbuf **rx_pkts,
 		rxd = *rxdp;
 		nb_hold++;
 		rxe = rxq->sw_ring[rx_id];
+		rxq->sw_ring[rx_id] = nmb;
 		rx_id++;
 		if (rx_id == rxq->nb_rx_desc)
 			rx_id = 0;
@@ -1567,6 +1570,7 @@ iavf_recv_scattered_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
 		rxd = *rxdp;
 		nb_hold++;
 		rxe = rxq->sw_ring[rx_id];
+		rxq->sw_ring[rx_id] = nmb;
 		rx_id++;
 		if (rx_id == rxq->nb_rx_desc)
 			rx_id = 0;
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Tuesday, June 1, 2021 1:10 PM
To: Wu, Jingjing <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix Rx issue for scalar Rx functions

From: Beilei Xing <[email protected]>

Quoted 8 lines

The new allocated mbuf should be updated to the SW ring.

Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
Fixes b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal path")
Applied
#2 lore raw
Quoted 23 lines

-----Original Message-----
From: Wu, Jingjing <[email protected]>
Sent: Tuesday, June 1, 2021 2:02 PM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [PATCH] net/iavf: fix Rx issue for scalar Rx functions

Quoted 13 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Tuesday, June 1, 2021 1:10 PM
To: Wu, Jingjing <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix Rx issue for scalar Rx functions

From: Beilei Xing <[email protected]>

The new allocated mbuf should be updated to the SW ring.

Quoted 8 lines
Quoted 6 lines
Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
Fixes b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in

normal path")
Cc: [email protected]

Applied to dpdk-next-net-intel.

Thanks
Qi