32 #ifndef _RTE_CRYPTODEV_PMD_H_
33 #define _RTE_CRYPTODEV_PMD_H_
49 #include <rte_config.h>
61 #define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS 8
62 #define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS 2048
64 #define RTE_CRYPTODEV_PMD_NAME_ARG ("name")
65 #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG ("max_nb_queue_pairs")
66 #define RTE_CRYPTODEV_PMD_MAX_NB_SESS_ARG ("max_nb_sessions")
67 #define RTE_CRYPTODEV_PMD_SOCKET_ID_ARG ("socket_id")
70 static const char *
const cryptodev_pmd_valid_params[] = {
71 RTE_CRYPTODEV_PMD_NAME_ARG,
72 RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG,
73 RTE_CRYPTODEV_PMD_MAX_NB_SESS_ARG,
74 RTE_CRYPTODEV_PMD_SOCKET_ID_ARG
81 struct rte_cryptodev_pmd_init_params {
83 size_t private_data_size;
85 unsigned int max_nb_queue_pairs;
86 unsigned int max_nb_sessions;
99 struct cryptodev_driver {
100 TAILQ_ENTRY(cryptodev_driver) next;
291 unsigned obj_cache_size,
int socket_id);
345 void *session_private);
358 void *session_private);
444 rte_cryptodev_pmd_parse_input_args(
445 struct rte_cryptodev_pmd_init_params *params,
463 rte_cryptodev_pmd_create(
const char *name,
465 struct rte_cryptodev_pmd_init_params *params);
500 rte_cryptodev_pmd_create_dev_name(
char *name,
const char *dev_name_prefix);
514 uint8_t rte_cryptodev_allocate_driver(
struct cryptodev_driver *crypto_drv,
518 #define RTE_PMD_REGISTER_CRYPTO_DRIVER(crypto_drv, drv, driver_id)\
519 RTE_INIT(init_ ##driver_id);\
520 static void init_ ##driver_id(void)\
522 driver_id = rte_cryptodev_allocate_driver(&crypto_drv, &(drv));\