Initialise OPENSSL crypto device */
| 3440 | |
| 3441 | /** Initialise OPENSSL crypto device */ |
| 3442 | static int |
| 3443 | cryptodev_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 */ |
| 3465 | static int |
nothing calls this directly
no test coverage detected