33 #ifndef _RTE_CRYPTODEV_VDEV_H_
34 #define _RTE_CRYPTODEV_VDEV_H_
41 #define RTE_CRYPTODEV_VDEV_DEFAULT_MAX_NB_QUEUE_PAIRS 8
42 #define RTE_CRYPTODEV_VDEV_DEFAULT_MAX_NB_SESSIONS 2048
44 #define RTE_CRYPTODEV_VDEV_NAME ("name")
45 #define RTE_CRYPTODEV_VDEV_MAX_NB_QP_ARG ("max_nb_queue_pairs")
46 #define RTE_CRYPTODEV_VDEV_MAX_NB_SESS_ARG ("max_nb_sessions")
47 #define RTE_CRYPTODEV_VDEV_SOCKET_ID ("socket_id")
49 static const char *
const cryptodev_vdev_valid_params[] = {
50 RTE_CRYPTODEV_VDEV_NAME,
51 RTE_CRYPTODEV_VDEV_MAX_NB_QP_ARG,
52 RTE_CRYPTODEV_VDEV_MAX_NB_SESS_ARG,
53 RTE_CRYPTODEV_VDEV_SOCKET_ID
60 struct rte_crypto_vdev_init_params {
61 unsigned int max_nb_queue_pairs;
62 unsigned int max_nb_sessions;
82 rte_cryptodev_vdev_pmd_init(
const char *name,
size_t dev_private_size,
83 int socket_id,
struct rte_vdev_device *vdev);
97 rte_cryptodev_vdev_parse_init_params(
struct rte_crypto_vdev_init_params *params,
98 const char *input_args);