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

Function rte_ipsec_pkt_crypto_prepare

dpdk/lib/ipsec/rte_ipsec.h:117–122  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

115 * Number of successfully processed packets, with error code set in rte_errno.
116 */
117static inline uint16_t
118rte_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
124static inline uint16_t
125rte_ipsec_pkt_cpu_prepare(const struct rte_ipsec_session *ss,

Callers 7

rte_swx_ipsec_pre_cryptoFunction · 0.85
crypto_ipsecFunction · 0.85
lksd_proto_ipsecFunction · 0.85
crypto_ipsec_2saFunction · 0.85
crypto_ipsec_2sa_4grpFunction · 0.85
packet_prepareFunction · 0.85

Calls

no outgoing calls

Tested by 5

crypto_ipsecFunction · 0.68
lksd_proto_ipsecFunction · 0.68
crypto_ipsec_2saFunction · 0.68
crypto_ipsec_2sa_4grpFunction · 0.68
packet_prepareFunction · 0.68