[PATCH] net/mlx5: cleanup unused Tx doorbelling routine

Viacheslav Ovsiienko
2026-03-23T10:14:44Z

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

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
drivers/net/mlx5/mlx5_tx.h | 15 ---------------
1 file changed, 15 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_tx.h b/drivers/net/mlx5/mlx5_tx.h
index 48dbb2d867..016dba0b03 100644
--- a/drivers/net/mlx5/mlx5_tx.h
+++ b/drivers/net/mlx5/mlx5_tx.h
@@ -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).
--
2.34.1