| 353 | } |
| 354 | |
| 355 | static inline void |
| 356 | crypto_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 | |
| 373 | static inline void |
| 374 | free_pkts_from_events(struct rte_event events[], uint16_t count) |
no test coverage detected