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

Function rte_crypto_op_alloc

dpdk/lib/cryptodev/rte_crypto.h:307–320  ·  view source on GitHub ↗

* Allocate a crypto operation from a mempool with default parameters set * * @param mempool crypto operation mempool * @param type operation type to allocate * * @returns * - On success returns a valid rte_crypto_op structure * - On failure returns NULL */

Source from the content-addressed store, hash-verified

305 * - On failure returns NULL
306 */
307static inline struct rte_crypto_op *
308rte_crypto_op_alloc(struct rte_mempool *mempool, enum rte_crypto_op_type type)
309{
310 struct rte_crypto_op *op = NULL;
311 int retval;
312
313 retval = __rte_crypto_op_raw_bulk_alloc(mempool, type, &op, 1);
314 if (unlikely(retval != 1))
315 return NULL;
316
317 __rte_crypto_op_reset(op, type);
318
319 return op;
320}
321
322
323/**

Callers 15

queue_ops_rsa_enc_decFunction · 0.85
ut_setup_asymFunction · 0.85
test_dh_gen_shared_secFunction · 0.85
test_dh_gen_priv_keyFunction · 0.85
test_dh_gen_pub_keyFunction · 0.85
test_dh_gen_kpFunction · 0.85
test_mod_invFunction · 0.85
test_mod_expFunction · 0.85
test_dsa_signFunction · 0.85
test_dsa_verifyFunction · 0.85
test_ecdsa_sign_verifyFunction · 0.85

Calls 2

__rte_crypto_op_resetFunction · 0.85

Tested by 15

queue_ops_rsa_enc_decFunction · 0.68
ut_setup_asymFunction · 0.68
test_dh_gen_shared_secFunction · 0.68
test_dh_gen_priv_keyFunction · 0.68
test_dh_gen_pub_keyFunction · 0.68
test_dh_gen_kpFunction · 0.68
test_mod_invFunction · 0.68
test_mod_expFunction · 0.68
test_dsa_signFunction · 0.68
test_dsa_verifyFunction · 0.68
test_ecdsa_sign_verifyFunction · 0.68