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

Function bnxt_db_nq

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

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

Source from the content-addressed store, hash-verified

99
100/* Ring an NQ doorbell and disable interrupts for the ring. */
101static inline void bnxt_db_nq(struct bnxt_cp_ring_info *cpr)
102{
103 uint32_t db_idx = DB_RING_IDX(&cpr->cp_db, cpr->cp_raw_cons);
104 uint64_t key_idx = cpr->cp_db.db_key64 | DBR_TYPE_NQ | db_idx;
105 void *doorbell = cpr->cp_db.doorbell;
106
107
108 if (unlikely(!cpr->cp_db.db_64))
109 return;
110
111 rte_write64(key_idx, doorbell);
112}
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)

Callers 3

bnxt_alloc_rxtx_nq_ringFunction · 0.85
bnxt_alloc_async_cp_ringFunction · 0.85
bnxt_disable_intFunction · 0.85

Calls 1

rte_write64Function · 0.50

Tested by

no test coverage detected