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

Function nitrox_process_se_req

dpdk/drivers/crypto/nitrox/nitrox_sym_reqmgr.c:822–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822int
823nitrox_process_se_req(uint16_t qno, struct rte_crypto_op *op,
824 struct nitrox_crypto_ctx *ctx,
825 struct nitrox_softreq *sr)
826{
827 int err;
828
829 if (unlikely(op->sym->m_src->nb_segs > MAX_SUPPORTED_MBUF_SEGS ||
830 (op->sym->m_dst &&
831 op->sym->m_dst->nb_segs > MAX_SUPPORTED_MBUF_SEGS))) {
832 NITROX_LOG(ERR, "Mbuf segments not supported. "
833 "Max supported %d\n", MAX_SUPPORTED_MBUF_SEGS);
834 return -ENOTSUP;
835 }
836
837 softreq_init(sr, sr->iova);
838 sr->ctx = ctx;
839 sr->op = op;
840 err = process_softreq(sr);
841 if (unlikely(err))
842 return err;
843
844 create_se_instr(sr, qno);
845 sr->timeout = rte_get_timer_cycles() + CMD_TIMEOUT * rte_get_timer_hz();
846 return 0;
847}
848
849int
850nitrox_check_se_req(struct nitrox_softreq *sr, struct rte_crypto_op **op)

Callers 1

nitrox_enq_single_opFunction · 0.85

Calls 3

softreq_initFunction · 0.85
process_softreqFunction · 0.85
create_se_instrFunction · 0.85

Tested by

no test coverage detected