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

Function nitrox_qp_enqueue

dpdk/drivers/crypto/nitrox/nitrox_qp.h:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static inline void
80nitrox_qp_enqueue(struct nitrox_qp *qp, void *instr, struct nitrox_softreq *sr)
81{
82 uint32_t head = qp->head % qp->count;
83
84 qp->head++;
85 memcpy(&qp->cmdq.ring[head * qp->cmdq.instr_size],
86 instr, qp->cmdq.instr_size);
87 qp->ridq[head].sr = sr;
88 rte_smp_wmb();
89 rte_atomic16_inc(&qp->pending_count);
90}
91
92static inline void
93nitrox_qp_dequeue(struct nitrox_qp *qp)

Callers 1

nitrox_enq_single_opFunction · 0.85

Calls 2

memcpyFunction · 0.50
rte_atomic16_incFunction · 0.50

Tested by

no test coverage detected