32 #ifndef _RTE_CRYPTODEV_PMD_H_ 33 #define _RTE_CRYPTODEV_PMD_H_ 61 #ifdef RTE_LIBRTE_CRYPTODEV_DEBUG 62 #define RTE_PMD_DEBUG_TRACE(...) \ 63 rte_pmd_debug_trace(__func__, __VA_ARGS__) 65 #define RTE_PMD_DEBUG_TRACE(...) 68 struct rte_cryptodev_session {
76 __extension__
char _private[0];
334 unsigned obj_cache_size,
int socket_id);
361 void *session_private);
374 typedef void * (*cryptodev_sym_configure_session_t)(
struct rte_cryptodev *dev,
382 void *session_private);
496 rte_cryptodev_pmd_create_dev_name(
char *name,
const char *dev_name_prefix);
void(* cryptodev_stop_t)(struct rte_cryptodev *dev)
void(* cryptodev_info_get_t)(struct rte_cryptodev *dev, struct rte_cryptodev_info *dev_info)
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
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
void(* cryptodev_sym_free_session_t)(struct rte_cryptodev *dev, void *session_private)
struct rte_cryptodev * devs
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_get_named_dev(const char *name)
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
struct rte_cryptodev * rte_cryptodev_pmd_get_dev(uint8_t dev_id)
unsigned(* cryptodev_sym_get_session_private_size_t)(struct rte_cryptodev *dev)
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)
unsigned int rte_cryptodev_pmd_is_valid_dev(uint8_t dev_id)
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
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)
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
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)