DPDK
21.02.0
|
#include <string.h>
#include <rte_dev.h>
#include <rte_common.h>
#include "rte_compressdev.h"
#include "rte_compressdev_internal.h"
Go to the source code of this file.
Data Structures | |
struct | rte_compressdev_global |
struct | rte_compressdev_ops |
Typedefs | |
typedef int(* | compressdev_configure_t) (struct rte_compressdev *dev, struct rte_compressdev_config *config) |
typedef int(* | compressdev_start_t) (struct rte_compressdev *dev) |
typedef void(* | compressdev_stop_t) (struct rte_compressdev *dev) |
typedef int(* | compressdev_close_t) (struct rte_compressdev *dev) |
typedef void(* | compressdev_stats_get_t) (struct rte_compressdev *dev, struct rte_compressdev_stats *stats) |
typedef void(* | compressdev_stats_reset_t) (struct rte_compressdev *dev) |
typedef void(* | compressdev_info_get_t) (struct rte_compressdev *dev, struct rte_compressdev_info *dev_info) |
typedef int(* | compressdev_queue_pair_setup_t) (struct rte_compressdev *dev, uint16_t qp_id, uint32_t max_inflight_ops, int socket_id) |
typedef int(* | compressdev_queue_pair_release_t) (struct rte_compressdev *dev, uint16_t qp_id) |
typedef int(* | compressdev_stream_create_t) (struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **stream) |
typedef int(* | compressdev_stream_free_t) (struct rte_compressdev *dev, void *stream) |
typedef int(* | compressdev_private_xform_create_t) (struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **private_xform) |
typedef int(* | compressdev_private_xform_free_t) (struct rte_compressdev *dev, void *private_xform) |
Functions | |
__rte_experimental struct rte_compressdev * | rte_compressdev_pmd_get_named_dev (const char *name) |
RTE comp PMD APIs
Definition in file rte_compressdev_pmd.h.
typedef int(* compressdev_configure_t) (struct rte_compressdev *dev, struct rte_compressdev_config *config) |
Definitions of all functions exported by a driver through the the generic structure of type comp_dev_ops supplied in the rte_compressdev structure associated with a device. Function used to configure device.
dev | Compress device |
config | Compress device configurations |
Definition at line 82 of file rte_compressdev_pmd.h.
typedef int(* compressdev_start_t) (struct rte_compressdev *dev) |
Function used to start a configured device.
dev | Compress device |
Definition at line 93 of file rte_compressdev_pmd.h.
typedef void(* compressdev_stop_t) (struct rte_compressdev *dev) |
Function used to stop a configured device.
dev | Compress device |
Definition at line 101 of file rte_compressdev_pmd.h.
typedef int(* compressdev_close_t) (struct rte_compressdev *dev) |
Function used to close a configured device.
dev | Compress device |
Definition at line 112 of file rte_compressdev_pmd.h.
typedef void(* compressdev_stats_get_t) (struct rte_compressdev *dev, struct rte_compressdev_stats *stats) |
Function used to get statistics of a device.
dev | Compress device |
stats | Compress device stats to populate |
Definition at line 123 of file rte_compressdev_pmd.h.
typedef void(* compressdev_stats_reset_t) (struct rte_compressdev *dev) |
Function used to reset statistics of a device.
dev | Compress device |
Definition at line 133 of file rte_compressdev_pmd.h.
typedef void(* compressdev_info_get_t) (struct rte_compressdev *dev, struct rte_compressdev_info *dev_info) |
Function used to get specific information of a device.
dev | Compress device |
dev_info | Compress device information to populate |
Definition at line 144 of file rte_compressdev_pmd.h.
typedef int(* compressdev_queue_pair_setup_t) (struct rte_compressdev *dev, uint16_t qp_id, uint32_t max_inflight_ops, int socket_id) |
Setup a queue pair for a device.
dev | Compress device |
qp_id | Queue pair identifier |
max_inflight_ops | Max inflight ops which qp must accommodate |
socket_id | Socket identifier |
Definition at line 161 of file rte_compressdev_pmd.h.
typedef int(* compressdev_queue_pair_release_t) (struct rte_compressdev *dev, uint16_t qp_id) |
Release memory resources allocated by given queue pair.
dev | Compress device |
qp_id | Queue pair identifier |
Definition at line 175 of file rte_compressdev_pmd.h.
typedef int(* compressdev_stream_create_t) (struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **stream) |
Create driver private stream data.
dev | Compressdev device |
xform | xform data |
stream | ptr where handle of pmd's private stream data should be stored |
Definition at line 194 of file rte_compressdev_pmd.h.
typedef int(* compressdev_stream_free_t) (struct rte_compressdev *dev, void *stream) |
Free driver private stream data.
dev | Compressdev device |
stream | handle of pmd's private stream data |
Definition at line 211 of file rte_compressdev_pmd.h.
typedef int(* compressdev_private_xform_create_t) (struct rte_compressdev *dev, const struct rte_comp_xform *xform, void **private_xform) |
Create driver private_xform data.
dev | Compressdev device |
xform | xform data |
private_xform | ptr where handle of pmd's private_xform data should be stored |
Definition at line 231 of file rte_compressdev_pmd.h.
typedef int(* compressdev_private_xform_free_t) (struct rte_compressdev *dev, void *private_xform) |
Free driver private_xform data.
dev | Compressdev device |
private_xform | handle of pmd's private_xform data |
Definition at line 247 of file rte_compressdev_pmd.h.
__rte_experimental struct rte_compressdev* rte_compressdev_pmd_get_named_dev | ( | const char * | name | ) |
Get the rte_compressdev structure device pointer for the named device.
name | Compress device name |