Skip to contentSkip to conversation

net/iavf: fix performance drop after port reset

PATCH Applied Leyi Rong 2 participants 2 messages Nov 12, 2020 Network drivers

lore
Share & tools
lore

Leyi Rong

author
#0 lore raw

PATCH 1/1 net/iavf: fix performance drop after port reset

Needs to reset rxq->rxrearm_start to 0 when reset_rx_queue(), otherwise, the random value of rxrearm_start will cause performance drop due to L3 contested accesses.

Fixes 69dd4c3d0898 ("net/avf: enable queue and device")
---
 drivers/net/iavf/iavf_rxtx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/iavf/iavf_rxtx.c +1 -0
index 8f43208c80..21d508b3f4 100644
@@ -195,6 +195,7 @@ reset_rx_queue(struct iavf_rx_queue *rxq)
 	rxq->pkt_first_seg = NULL;
 	rxq->pkt_last_seg = NULL;
 	rxq->rxrearm_nb = 0;
+	rxq->rxrearm_start = 0;
 }
 
 static inline void
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 11 lines

-----Original Message-----
From: Rong, Leyi <[email protected]>
Sent: Thursday, November 12, 2020 1:52 PM
To: Zhang, Qi Z <[email protected]>; Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Rong, Leyi <[email protected]>
Subject: [PATCH] net/iavf: fix performance drop after port reset

Quoted 7 lines

Needs to reset rxq->rxrearm_start to 0 when reset_rx_queue(), otherwise, the random value of rxrearm_start will cause performance drop due to L3 contested accesses.

Fixes 69dd4c3d0898 ("net/avf: enable queue and device")

Applied to dpdk-next-net-intel.

Thanks
Qi