Skip to contentSkip to conversation

net/mlx5: cleanup unused Tx doorbelling routine

PATCH In review Viacheslav Ovsiienko 2 participants 2 messages Mar 23 – Mar 24 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: cleanup unused Tx doorbelling routine

The mlx5_tx_dbrec() was replaced with common mlx5_doorbell_ring() routine and is not needed anymore.

---
 drivers/net/mlx5/mlx5_tx.h | 15 ---------------
 1 file changed, 15 deletions(-)
drivers/net/mlx5/mlx5_tx.h +0 -15
index 48dbb2d867..016dba0b03 100644
@@ -301,21 +301,6 @@ mlx5_tx_bfreg(struct mlx5_txq_data *txq)
 	return &MLX5_PROC_PRIV(txq->port_id)->uar_table[txq->idx];
 }
 
-/**
- * Ring TX queue doorbell and flush the update by write memory barrier.
- *
- * @param txq
- *   Pointer to TX queue structure.
- * @param wqe
- *   Pointer to the last WQE posted in the NIC.
- */
-static __rte_always_inline void
-mlx5_tx_dbrec(struct mlx5_txq_data *txq, volatile struct mlx5_wqe *wqe)
-{
-	mlx5_doorbell_ring(mlx5_tx_bfreg(txq), *(volatile uint64_t *)wqe,
-			   txq->wqe_ci, txq->qp_db, 1);
-}
-
 /**
  * Convert timestamp from mbuf format to linear counter
  * of Clock Queue completions (24 bits).
Signature · 1 line
2.34.1