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

Function cryptodev_openssl_probe

dpdk/drivers/crypto/openssl/rte_openssl_pmd.c:3442–3462  ·  view source on GitHub ↗

Initialise OPENSSL crypto device */

Source from the content-addressed store, hash-verified

3440
3441/** Initialise OPENSSL crypto device */
3442static int
3443cryptodev_openssl_probe(struct rte_vdev_device *vdev)
3444{
3445 struct rte_cryptodev_pmd_init_params init_params = {
3446 "",
3447 sizeof(struct openssl_private),
3448 rte_socket_id(),
3449 RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS
3450 };
3451 const char *name;
3452 const char *input_args;
3453
3454 name = rte_vdev_device_name(vdev);
3455 if (name == NULL)
3456 return -EINVAL;
3457 input_args = rte_vdev_device_args(vdev);
3458
3459 rte_cryptodev_pmd_parse_input_args(&init_params, input_args);
3460
3461 return cryptodev_openssl_create(name, vdev, &init_params);
3462}
3463
3464/** Uninitialise OPENSSL crypto device */
3465static int

Callers

nothing calls this directly

Calls 5

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
cryptodev_openssl_createFunction · 0.85

Tested by

no test coverage detected