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

Function mlx5_txpp_cq_arm

dpdk/drivers/net/mlx5/mlx5_txpp.c:474–486  ·  view source on GitHub ↗

Enable notification from the Rearm Queue CQ. */

Source from the content-addressed store, hash-verified

472
473/* Enable notification from the Rearm Queue CQ. */
474static inline void
475mlx5_txpp_cq_arm(struct mlx5_dev_ctx_shared *sh)
476{
477 struct mlx5_txpp_wq *aq = &sh->txpp.rearm_queue;
478 uint32_t arm_sn = aq->arm_sn << MLX5_CQ_SQN_OFFSET;
479 uint32_t db_hi = arm_sn | MLX5_CQ_DBR_CMD_ALL | aq->cq_ci;
480 uint64_t db_be =
481 rte_cpu_to_be_64(((uint64_t)db_hi << 32) | aq->cq_obj.cq->id);
482
483 mlx5_doorbell_ring(&sh->tx_uar.cq_db, db_be, db_hi,
484 &aq->cq_obj.db_rec[MLX5_CQ_ARM_DB], 0);
485 aq->arm_sn++;
486}
487
488#if defined(RTE_ARCH_X86_64)
489static inline int

Callers 2

mlx5_txpp_start_serviceFunction · 0.85

Calls 1

mlx5_doorbell_ringFunction · 0.85

Tested by

no test coverage detected