5 #ifndef _RTE_CRYPTODEV_PMD_H_
6 #define _RTE_CRYPTODEV_PMD_H_
22 #include <rte_config.h>
34 #define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS 8
36 #define RTE_CRYPTODEV_PMD_NAME_ARG ("name")
37 #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG ("max_nb_queue_pairs")
38 #define RTE_CRYPTODEV_PMD_SOCKET_ID_ARG ("socket_id")
41 static const char *
const cryptodev_pmd_valid_params[] = {
42 RTE_CRYPTODEV_PMD_NAME_ARG,
43 RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG,
44 RTE_CRYPTODEV_PMD_SOCKET_ID_ARG
51 struct rte_cryptodev_pmd_init_params {
53 size_t private_data_size;
55 unsigned int max_nb_queue_pairs;
68 struct cryptodev_driver {
69 TAILQ_ENTRY(cryptodev_driver) next;
234 unsigned obj_cache_size,
int socket_id);
395 rte_cryptodev_pmd_parse_input_args(
396 struct rte_cryptodev_pmd_init_params *params,
414 rte_cryptodev_pmd_create(
const char *name,
416 struct rte_cryptodev_pmd_init_params *params);
451 rte_cryptodev_pmd_create_dev_name(
char *name,
const char *dev_name_prefix);
465 uint8_t rte_cryptodev_allocate_driver(
struct cryptodev_driver *crypto_drv,
469 #define RTE_PMD_REGISTER_CRYPTO_DRIVER(crypto_drv, drv, driver_id)\
470 RTE_INIT(init_ ##driver_id)\
472 driver_id = rte_cryptodev_allocate_driver(&crypto_drv, &(drv));\
486 uint8_t driver_id,
void *private_data)
489 CDEV_LOG_ERR(
"Set private data for driver %u not allowed\n",
505 uint8_t driver_id,
void *private_data)