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

Function lksd_proto_cop_prepare

dpdk/lib/ipsec/sa.c:613–628  ·  view source on GitHub ↗

* setup crypto ops for LOOKASIDE_PROTO type of devices. */

Source from the content-addressed store, hash-verified

611 * setup crypto ops for LOOKASIDE_PROTO type of devices.
612 */
613static inline void
614lksd_proto_cop_prepare(const struct rte_ipsec_session *ss,
615 struct rte_mbuf *mb[], struct rte_crypto_op *cop[], uint16_t num)
616{
617 uint32_t i;
618 struct rte_crypto_sym_op *sop;
619
620 for (i = 0; i != num; i++) {
621 sop = cop[i]->sym;
622 cop[i]->type = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
623 cop[i]->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED;
624 cop[i]->sess_type = RTE_CRYPTO_OP_SECURITY_SESSION;
625 sop->m_src = mb[i];
626 __rte_security_attach_session(sop, ss->security.ses);
627 }
628}
629
630/*
631 * setup packets and crypto ops for LOOKASIDE_PROTO type of devices.

Callers 1

lksd_proto_prepareFunction · 0.85

Calls 1

Tested by

no test coverage detected