* setup crypto ops for LOOKASIDE_PROTO type of devices. */
| 611 | * setup crypto ops for LOOKASIDE_PROTO type of devices. |
| 612 | */ |
| 613 | static inline void |
| 614 | lksd_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. |
no test coverage detected