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

Function bnxt_db_nq_arm

dpdk/drivers/net/bnxt/bnxt_ring.h:115–125  ·  view source on GitHub ↗

Ring an NQ doorbell and enable interrupts for the ring. */

Source from the content-addressed store, hash-verified

113
114/* Ring an NQ doorbell and enable interrupts for the ring. */
115static inline void bnxt_db_nq_arm(struct bnxt_cp_ring_info *cpr)
116{
117 uint32_t db_idx = DB_RING_IDX(&cpr->cp_db, cpr->cp_raw_cons);
118 uint64_t key_idx = cpr->cp_db.db_key64 | DBR_TYPE_NQ_ARM | db_idx;
119 void *doorbell = cpr->cp_db.doorbell;
120
121 if (unlikely(!cpr->cp_db.db_64))
122 return;
123
124 rte_write64(key_idx, doorbell);
125}
126
127static inline void bnxt_db_cq(struct bnxt_cp_ring_info *cpr)
128{

Callers 2

bnxt_int_handlerFunction · 0.85
bnxt_enable_intFunction · 0.85

Calls 1

rte_write64Function · 0.50

Tested by

no test coverage detected