MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txq_uar_init

Function txq_uar_init

dpdk/drivers/net/mlx4/mlx4_txq.c:47–56  ·  view source on GitHub ↗

* Initialize Tx UAR registers for primary process. * * @param txq * Pointer to Tx queue structure. */

Source from the content-addressed store, hash-verified

45 * Pointer to Tx queue structure.
46 */
47static void
48txq_uar_init(struct txq *txq)
49{
50 struct mlx4_priv *priv = txq->priv;
51 struct mlx4_proc_priv *ppriv = MLX4_PROC_PRIV(PORT_ID(priv));
52
53 MLX4_ASSERT(rte_eal_process_type() == RTE_PROC_PRIMARY);
54 MLX4_ASSERT(ppriv);
55 ppriv->uar_table[txq->stats.idx] = txq->msq.db;
56}
57
58#ifdef HAVE_IBV_MLX4_UAR_MMAP_OFFSET
59/**

Callers 1

mlx4_tx_queue_setupFunction · 0.85

Calls 1

rte_eal_process_typeFunction · 0.85

Tested by

no test coverage detected