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

Function lksd_none_cop_prepare

dpdk/lib/ipsec/crypto.h:305–317  ·  view source on GitHub ↗

* setup crypto ops for LOOKASIDE_NONE (pure crypto) type of devices. */

Source from the content-addressed store, hash-verified

303 * setup crypto ops for LOOKASIDE_NONE (pure crypto) type of devices.
304 */
305static inline void
306lksd_none_cop_prepare(struct rte_crypto_op *cop,
307 struct rte_cryptodev_sym_session *cs, struct rte_mbuf *mb)
308{
309 struct rte_crypto_sym_op *sop;
310
311 sop = cop->sym;
312 cop->type = RTE_CRYPTO_OP_TYPE_SYMMETRIC;
313 cop->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED;
314 cop->sess_type = RTE_CRYPTO_OP_WITH_SESSION;
315 sop->m_src = mb;
316 __rte_crypto_sym_op_attach_sym_session(sop, cs);
317}
318
319#endif /* _CRYPTO_H_ */

Callers 3

esp_inb_pkt_prepareFunction · 0.85
esp_outb_tun_prepareFunction · 0.85
esp_outb_trs_prepareFunction · 0.85

Tested by

no test coverage detected