* For input mbufs and given IPsec session prepare crypto ops that can be * enqueued into the cryptodev associated with given session. * expects that for each input packet: * - l2_len, l3_len are setup correctly * Note that erroneous mbufs are not freed by the function, * but are placed beyond last valid mbuf in the *mb* array. * It is a user responsibility to handle them further. * @pa
| 115 | * Number of successfully processed packets, with error code set in rte_errno. |
| 116 | */ |
| 117 | static inline uint16_t |
| 118 | rte_ipsec_pkt_crypto_prepare(const struct rte_ipsec_session *ss, |
| 119 | struct rte_mbuf *mb[], struct rte_crypto_op *cop[], uint16_t num) |
| 120 | { |
| 121 | return ss->pkt_func.prepare.async(ss, mb, cop, num); |
| 122 | } |
| 123 | |
| 124 | static inline uint16_t |
| 125 | rte_ipsec_pkt_cpu_prepare(const struct rte_ipsec_session *ss, |
no outgoing calls