net/iavf: fix Rx issue for scalar Rx functions
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.
--- drivers/net/iavf/iavf_rxtx.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/iavf/iavf_rxtx.c +4 -0
@@ -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
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 functionsFrom: 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")Signed-off-by Beilei Xing <[email protected]>
Zhang, Qi Z
AppliedQuoted 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 functionsQuoted 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 functionsFrom: 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 innormal path")
Cc: [email protected]Signed-off-by Beilei Xing <[email protected]>Acked-by Jingjing Wu <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi