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

Function nitrox_enq_single_op

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

Source from the content-addressed store, hash-verified

623}
624
625static int
626nitrox_enq_single_op(struct nitrox_qp *qp, struct rte_crypto_op *op)
627{
628 struct nitrox_crypto_ctx *ctx;
629 struct nitrox_softreq *sr;
630 int err;
631
632 op->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED;
633 ctx = get_crypto_ctx(op);
634 if (unlikely(!ctx)) {
635 op->status = RTE_CRYPTO_OP_STATUS_INVALID_SESSION;
636 return -EINVAL;
637 }
638
639 if (unlikely(rte_mempool_get(qp->sr_mp, (void **)&sr)))
640 return -ENOMEM;
641
642 err = nitrox_process_se_req(qp->qno, op, ctx, sr);
643 if (unlikely(err)) {
644 rte_mempool_put(qp->sr_mp, sr);
645 op->status = RTE_CRYPTO_OP_STATUS_ERROR;
646 return err;
647 }
648
649 nitrox_qp_enqueue(qp, nitrox_sym_instr_addr(sr), sr);
650 return 0;
651}
652
653static uint16_t
654nitrox_sym_dev_enq_burst(void *queue_pair, struct rte_crypto_op **ops,

Callers 1

nitrox_sym_dev_enq_burstFunction · 0.85

Calls 6

get_crypto_ctxFunction · 0.85
rte_mempool_getFunction · 0.85
nitrox_process_se_reqFunction · 0.85
rte_mempool_putFunction · 0.85
nitrox_qp_enqueueFunction · 0.85
nitrox_sym_instr_addrFunction · 0.85

Tested by

no test coverage detected