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

Function crypto_prepare_event

dpdk/examples/ipsec-secgw/ipsec_worker.c:355–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355static inline void
356crypto_prepare_event(struct rte_mbuf *pkt, struct rte_ipsec_session *sess, struct rte_event *ev)
357{
358 struct ipsec_mbuf_metadata *priv;
359 struct rte_crypto_op *cop;
360
361 /* Get pkt private data */
362 priv = get_priv(pkt);
363 cop = &priv->cop;
364
365 /* Reset crypto operation data */
366 crypto_op_reset(sess, &pkt, &cop, 1);
367
368 /* Update event_ptr with rte_crypto_op */
369 ev->event = 0;
370 ev->event_ptr = cop;
371}
372
373static inline void
374free_pkts_from_events(struct rte_event events[], uint16_t count)

Callers 3

event_crypto_enqueueFunction · 0.85

Calls 2

get_privFunction · 0.85
crypto_op_resetFunction · 0.85

Tested by

no test coverage detected