5 #ifndef _RTE_COMPRESSDEV_PMD_H_ 6 #define _RTE_COMPRESSDEV_PMD_H_ 18 #include <dev_driver.h> 21 #include "rte_compressdev_internal.h" 27 #define RTE_COMPRESSDEV_PMD_NAME_ARG ("name") 28 #define RTE_COMPRESSDEV_PMD_SOCKET_ID_ARG ("socket_id") 30 static const char *
const compressdev_pmd_valid_params[] = {
31 RTE_COMPRESSDEV_PMD_NAME_ARG,
32 RTE_COMPRESSDEV_PMD_SOCKET_ID_ARG
39 struct rte_compressdev_pmd_init_params {
40 char name[RTE_COMPRESSDEV_NAME_MAX_LEN];
160 uint16_t qp_id, uint32_t max_inflight_ops,
int socket_id);
246 void *private_xform);
294 rte_compressdev_pmd_allocate(
const char *name,
int socket_id);
331 rte_compressdev_pmd_parse_input_args(
332 struct rte_compressdev_pmd_init_params *params,
352 rte_compressdev_pmd_create(
const char *name,
353 struct rte_device *
device,
354 size_t private_data_size,
355 struct rte_compressdev_pmd_init_params *params);
compressdev_queue_pair_setup_t queue_pair_setup
compressdev_stream_create_t stream_create
compressdev_queue_pair_release_t queue_pair_release
int(* compressdev_private_xform_free_t)(struct rte_compressdev *dev, void *private_xform)
int(* compressdev_configure_t)(struct rte_compressdev *dev, struct rte_compressdev_config *config)
compressdev_start_t dev_start
int(* compressdev_queue_pair_setup_t)(struct rte_compressdev *dev, uint16_t qp_id, uint32_t max_inflight_ops, int socket_id)
void(* compressdev_stats_reset_t)(struct rte_compressdev *dev)
compressdev_stats_get_t stats_get
struct rte_compressdev * devs
struct rte_device * device
compressdev_stream_free_t stream_free
int(* compressdev_stream_free_t)(struct rte_compressdev *dev, void *stream)
compressdev_stats_reset_t stats_reset
int(* compressdev_stream_create_t)(struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **stream)
compressdev_private_xform_free_t private_xform_free
compressdev_info_get_t dev_infos_get
struct rte_compressdev * rte_compressdev_pmd_get_named_dev(const char *name)
compressdev_close_t dev_close
int(* compressdev_close_t)(struct rte_compressdev *dev)
compressdev_stop_t dev_stop
int(* compressdev_private_xform_create_t)(struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **private_xform)
void(* compressdev_info_get_t)(struct rte_compressdev *dev, struct rte_compressdev_info *dev_info)
void(* compressdev_stop_t)(struct rte_compressdev *dev)
compressdev_configure_t dev_configure
int(* compressdev_start_t)(struct rte_compressdev *dev)
int(* compressdev_queue_pair_release_t)(struct rte_compressdev *dev, uint16_t qp_id)
void(* compressdev_stats_get_t)(struct rte_compressdev *dev, struct rte_compressdev_stats *stats)
compressdev_private_xform_create_t private_xform_create