Skip to contentSkip to conversation

net/ice: use write combining store for tail updates on AVX512 path.

PATCH Applied Radu Nicolau 2 participants 2 messages Apr 9, 2021 – Apr 13, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: use write combining store for tail updates on AVX512 path.

Performance improvement: use a write combining store instead of a regular mmio write to update queue tail registers.

---
 drivers/net/ice/ice_rxtx_vec_avx512.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 0e5a676e6..9f3501238 100644
@@ -125,7 +125,7 @@ ice_rxq_rearm(struct ice_rx_queue *rxq)
 			     (rxq->nb_rx_desc - 1) : (rxq->rxrearm_start - 1));
 
 	/* Update the tail pointer on the NIC */
-	ICE_PCI_REG_WRITE(rxq->qrx_tail, rx_id);
+	ICE_PCI_REG_WC_WRITE(rxq->qrx_tail, rx_id);
 }
 
 static inline __m256i
@@ -1111,7 +1111,7 @@ ice_xmit_fixed_burst_vec_avx512(void *tx_queue, struct rte_mbuf **tx_pkts,
 
 	txq->tx_tail = tx_id;
 
-	ICE_PCI_REG_WRITE(txq->qtx_tail, txq->tx_tail);
+	ICE_PCI_REG_WC_WRITE(txq->qtx_tail, txq->tx_tail);
 
 	return nb_pkts;
 }
Signature · 1 line
2.17.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Nicolau, Radu <[email protected]>
Sent: Friday, April 9, 2021 6:09 PM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Rong, Leyi <[email protected]>; Zhang, Qi Z <[email protected]>; Lu, Wenzhuo <[email protected]>; Nicolau, Radu <[email protected]>
Subject: [PATCH] net/ice: use write combining store for tail updates on AVX512 path.

Quoted 4 lines

Performance improvement: use a write combining store instead of a regular mmio write to update queue tail registers.

Applied to dpdk-next-net-intel.

Thanks
Qi