32 #ifndef _RTE_CRYPTODEV_PMD_H_
33 #define _RTE_CRYPTODEV_PMD_H_
60 struct rte_cryptodev_session {
68 __extension__
char _private[0];
178 for (i = 0; i < rte_cryptodev_globals->
max_devs; i++) {
179 dev = &rte_cryptodev_globals->
devs[i];
181 if ((dev->
attached == RTE_CRYPTODEV_ATTACHED) &&
182 (strcmp(dev->
data->
name, name) == 0))
197 static inline unsigned
202 if (dev_id >= rte_cryptodev_globals->
nb_devs)
206 if (dev->
attached != RTE_CRYPTODEV_ATTACHED)
358 unsigned obj_cache_size,
int socket_id);
385 void *session_private);
398 typedef void * (*cryptodev_sym_configure_session_t)(
struct rte_cryptodev *dev,
406 void *session_private);
void(* cryptodev_stop_t)(struct rte_cryptodev *dev)
void(* cryptodev_info_get_t)(struct rte_cryptodev *dev, struct rte_cryptodev_info *dev_info)
struct rte_pci_device * pci_dev
static struct rte_cryptodev * rte_cryptodev_pmd_get_named_dev(const char *name)
cryptodev_sym_get_session_private_size_t session_get_size
cryptodev_close_t dev_close
int rte_cryptodev_pmd_release_device(struct rte_cryptodev *cryptodev)
cryptodev_init_t cryptodev_init
struct rte_cryptodev_data * data[RTE_CRYPTO_MAX_DEVS]
int rte_cryptodev_pci_remove(struct rte_pci_device *pci_dev)
unsigned dev_private_size
int(* cryptodev_init_t)(struct rte_cryptodev_driver *drv, struct rte_cryptodev *dev)
cryptodev_stop_t dev_stop
__extension__ uint8_t attached
void(* cryptodev_sym_free_session_t)(struct rte_cryptodev *dev, void *session_private)
struct rte_cryptodev * devs
char name[RTE_CRYPTODEV_NAME_MAX_LEN]
uint32_t(* cryptodev_queue_pair_count_t)(struct rte_cryptodev *dev)
int(* cryptodev_queue_pair_stop_t)(struct rte_cryptodev *dev, uint16_t qp_id)
int(* cryptodev_uninit_t)(const struct rte_cryptodev_driver *drv, struct rte_cryptodev *dev)
struct rte_cryptodev * rte_cryptodev_pmd_virtual_dev_init(const char *name, size_t dev_private_size, int socket_id)
cryptodev_queue_pair_stop_t queue_pair_stop
unsigned(* cryptodev_sym_get_session_private_size_t)(struct rte_cryptodev *dev)
struct rte_cryptodev_data * data
cryptodev_queue_pair_count_t queue_pair_count
struct rte_cryptodev * rte_cryptodev_pmd_allocate(const char *name, int socket_id)
void rte_cryptodev_pmd_callback_process(struct rte_cryptodev *dev, enum rte_cryptodev_event_type event)
int rte_cryptodev_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
void *(* cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev, struct rte_crypto_sym_xform *xform, void *session_private)
int(* cryptodev_queue_pair_setup_t)(struct rte_cryptodev *dev, uint16_t qp_id, const struct rte_cryptodev_qp_conf *qp_conf, int socket_id)
int(* cryptodev_queue_pair_release_t)(struct rte_cryptodev *dev, uint16_t qp_id)
cryptodev_stats_get_t stats_get
cryptodev_sym_initialize_session_t session_initialize
struct rte_pci_driver pci_drv
int(* cryptodev_sym_create_session_pool_t)(struct rte_cryptodev *dev, unsigned nb_objs, unsigned obj_cache_size, int socket_id)
cryptodev_configure_t dev_configure
cryptodev_sym_free_session_t session_clear
cryptodev_queue_pair_start_t queue_pair_start
void(* cryptodev_stats_reset_t)(struct rte_cryptodev *dev)
cryptodev_info_get_t dev_infos_get
cryptodev_start_t dev_start
int(* cryptodev_close_t)(struct rte_cryptodev *dev)
static unsigned rte_cryptodev_pmd_is_valid_dev(uint8_t dev_id)
cryptodev_stats_reset_t stats_reset
cryptodev_queue_pair_setup_t queue_pair_setup
struct rte_cryptodev_global * rte_cryptodev_globals
cryptodev_uninit_t cryptodev_uninit
int(* cryptodev_queue_pair_start_t)(struct rte_cryptodev *dev, uint16_t qp_id)
void(* cryptodev_stats_get_t)(struct rte_cryptodev *dev, struct rte_cryptodev_stats *stats)
cryptodev_sym_configure_session_t session_configure
static struct rte_cryptodev * rte_cryptodev_pmd_get_dev(uint8_t dev_id)
cryptodev_queue_pair_release_t queue_pair_release
int(* cryptodev_configure_t)(struct rte_cryptodev *dev)
void(* cryptodev_sym_initialize_session_t)(struct rte_mempool *mempool, void *session_private)
struct rte_cryptodev * rte_cryptodevs
int(* cryptodev_start_t)(struct rte_cryptodev *dev)