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

Function nitrox_sym_dev_enq_burst

dpdk/drivers/crypto/nitrox/nitrox_sym.c:653–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653static uint16_t
654nitrox_sym_dev_enq_burst(void *queue_pair, struct rte_crypto_op **ops,
655 uint16_t nb_ops)
656{
657 struct nitrox_qp *qp = queue_pair;
658 uint16_t free_slots = 0;
659 uint16_t cnt = 0;
660 bool err = false;
661
662 free_slots = nitrox_qp_free_count(qp);
663 if (nb_ops > free_slots)
664 nb_ops = free_slots;
665
666 for (cnt = 0; cnt < nb_ops; cnt++) {
667 if (unlikely(nitrox_enq_single_op(qp, ops[cnt]))) {
668 err = true;
669 break;
670 }
671 }
672
673 nitrox_ring_dbell(qp, cnt);
674 qp->stats.enqueued_count += cnt;
675 if (unlikely(err))
676 qp->stats.enqueue_err_count++;
677
678 return cnt;
679}
680
681static int
682nitrox_deq_single_op(struct nitrox_qp *qp, struct rte_crypto_op **op_ptr)

Callers

nothing calls this directly

Calls 3

nitrox_qp_free_countFunction · 0.85
nitrox_enq_single_opFunction · 0.85
nitrox_ring_dbellFunction · 0.85

Tested by

no test coverage detected