From 63b7be7870c1eef53808f796f815b9b34ba36325 Mon Sep 17 00:00:00 2001 From: Leyi Rong Date: Thu, 12 Nov 2020 13:51:54 +0800 Subject: [PATCH] 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") Cc: stable@dpdk.org Signed-off-by: Leyi Rong Acked-by: Qi Zhang --- drivers/net/iavf/iavf_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 8f43208c80..21d508b3f4 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -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 -- 2.20.1