DPDK 23.11.2
Loading...
Searching...
No Matches
rte_compressdev.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017-2018 Intel Corporation
3 */
4
5#ifndef _RTE_COMPRESSDEV_H_
6#define _RTE_COMPRESSDEV_H_
7
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20
21#include "rte_comp.h"
22
28 uint8_t min;
29 uint8_t max;
30 uint8_t increment;
36};
37
40 enum rte_comp_algorithm algo;
41 /* Compression algorithm */
46};
47
49#define RTE_COMP_END_OF_CAPABILITIES_LIST() \
50 { RTE_COMP_ALGO_UNSPECIFIED }
51
53rte_compressdev_capability_get(uint8_t dev_id,
54 enum rte_comp_algorithm algo);
55
63#define RTE_COMPDEV_FF_HW_ACCELERATED (1ULL << 0)
65#define RTE_COMPDEV_FF_CPU_SSE (1ULL << 1)
67#define RTE_COMPDEV_FF_CPU_AVX (1ULL << 2)
69#define RTE_COMPDEV_FF_CPU_AVX2 (1ULL << 3)
71#define RTE_COMPDEV_FF_CPU_AVX512 (1ULL << 4)
73#define RTE_COMPDEV_FF_CPU_NEON (1ULL << 5)
75#define RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE (1ULL << 6)
91const char *
93
105
118
119
129int
131
141const char *
143
151uint8_t
153
168uint8_t
169rte_compressdev_devices_get(const char *driver_name, uint8_t *devices,
170 uint8_t nb_devices);
171
172/*
173 * Return the NUMA socket to which a device is connected.
174 *
175 * @param dev_id
176 * Compress device identifier
177 * @return
178 * The NUMA socket id to which the device is connected or
179 * a default of zero if the socket could not be determined.
180 * -1 if returned is the dev_id value is out of range.
181 */
182int
183rte_compressdev_socket_id(uint8_t dev_id);
184
196
212int
214 struct rte_compressdev_config *config);
215
230int
231rte_compressdev_start(uint8_t dev_id);
232
240void
241rte_compressdev_stop(uint8_t dev_id);
242
257int
258rte_compressdev_close(uint8_t dev_id);
259
283int
284rte_compressdev_queue_pair_setup(uint8_t dev_id, uint16_t queue_pair_id,
285 uint32_t max_inflight_ops, int socket_id);
286
295uint16_t
297
298
312int
314
321void
323
338void
339rte_compressdev_info_get(uint8_t dev_id, struct rte_compressdev_info *dev_info);
340
395uint16_t
396rte_compressdev_dequeue_burst(uint8_t dev_id, uint16_t qp_id,
397 struct rte_comp_op **ops, uint16_t nb_ops);
398
449uint16_t
450rte_compressdev_enqueue_burst(uint8_t dev_id, uint16_t qp_id,
451 struct rte_comp_op **ops, uint16_t nb_ops);
452
476int
478 const struct rte_comp_xform *xform,
479 void **stream);
480
497int
498rte_compressdev_stream_free(uint8_t dev_id, void *stream);
499
523int
525 const struct rte_comp_xform *xform,
526 void **private_xform);
527
544int
545rte_compressdev_private_xform_free(uint8_t dev_id, void *private_xform);
546
547#ifdef __cplusplus
548}
549#endif
550
551#endif /* _RTE_COMPRESSDEV_H_ */
rte_comp_algorithm
Definition rte_comp.h:106
int rte_compressdev_private_xform_create(uint8_t dev_id, const struct rte_comp_xform *xform, void **private_xform)
int rte_compressdev_stream_free(uint8_t dev_id, void *stream)
int rte_compressdev_configure(uint8_t dev_id, struct rte_compressdev_config *config)
int rte_compressdev_private_xform_free(uint8_t dev_id, void *private_xform)
int rte_compressdev_stream_create(uint8_t dev_id, const struct rte_comp_xform *xform, void **stream)
int rte_compressdev_close(uint8_t dev_id)
uint16_t rte_compressdev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, struct rte_comp_op **ops, uint16_t nb_ops)
int rte_compressdev_get_dev_id(const char *name)
int rte_compressdev_queue_pair_setup(uint8_t dev_id, uint16_t queue_pair_id, uint32_t max_inflight_ops, int socket_id)
void rte_compressdev_stop(uint8_t dev_id)
const char * rte_compressdev_name_get(uint8_t dev_id)
uint16_t rte_compressdev_dequeue_burst(uint8_t dev_id, uint16_t qp_id, struct rte_comp_op **ops, uint16_t nb_ops)
uint16_t rte_compressdev_queue_pair_count(uint8_t dev_id)
void rte_compressdev_info_get(uint8_t dev_id, struct rte_compressdev_info *dev_info)
int rte_compressdev_stats_get(uint8_t dev_id, struct rte_compressdev_stats *stats)
uint8_t rte_compressdev_devices_get(const char *driver_name, uint8_t *devices, uint8_t nb_devices)
const char * rte_compressdev_get_feature_name(uint64_t flag)
uint8_t rte_compressdev_count(void)
int rte_compressdev_start(uint8_t dev_id)
void rte_compressdev_stats_reset(uint8_t dev_id)
struct rte_param_log2_range window_size
const struct rte_compressdev_capabilities * capabilities