Enable notification from the Rearm Queue CQ. */
| 472 | |
| 473 | /* Enable notification from the Rearm Queue CQ. */ |
| 474 | static inline void |
| 475 | mlx5_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) |
| 489 | static inline int |
no test coverage detected