Skip to contentSkip to conversation

net/ice: fix performance with writeback policy

PATCH In review Qi Zhang 2 participants 3 messages Aug 29, 2021 – Sep 6, 2021 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice: fix performance with writeback policy

Apply the same fix that for iavf to DCF
commit: ead06572bd8f ("net/iavf: fix performance with writeback policy")

Fixes 4b0d391f0eab ("net/ice: add queue config in DCF")
---
 drivers/net/ice/ice_dcf_ethdev.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/net/ice/ice_dcf_ethdev.c +7 -2
index cab7c4da87..3389605949 100644
@@ -172,10 +172,15 @@ ice_dcf_config_rx_queues_irqs(struct rte_eth_dev *dev,
 		    VIRTCHNL_VF_OFFLOAD_WB_ON_ITR) {
 			/* If WB_ON_ITR supports, enable it */
 			hw->msix_base = IAVF_RX_VEC_START;
+			/* Set the ITR for index zero, to 2us to make sure that
+			 * we leave time for aggregation to occur, but don't
+			 * increase latency dramatically.
+			 */
 			IAVF_WRITE_REG(&hw->avf,
 				       IAVF_VFINT_DYN_CTLN1(hw->msix_base - 1),
-				       IAVF_VFINT_DYN_CTLN1_ITR_INDX_MASK |
-				       IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK);
+				       (0 << IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT) |
+				       IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK |
+				       (2UL << IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT));
 		} else {
 			/* If no WB_ON_ITR offload flags, need to set
 			 * interrupt for descriptor write back.
Signature · 1 line
2.26.2
author Applied
#2 lore raw
Quoted 13 lines

-----Original Message-----
From: Tu, Lijuan <[email protected]>
Sent: Monday, September 6, 2021 9:35 AM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Guo, Junfeng <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] net/ice: fix performance with writeback policy

Quoted 3 lines

Apply the same fix that for iavf to DCF
commit: ead06572bd8f ("net/iavf: fix performance with writeback policy")

Quoted 6 lines
Quoted 4 lines
Fixes 4b0d391f0eab ("net/ice: add queue config in DCF")

Applied to dpdk-next-net-intel.

Thanks
Qi