DPDK 25.03.0-rc0
rte_compressdev_internal.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017-2018 Intel Corporation
3 */
4
5#ifndef _RTE_COMPRESSDEV_INTERNAL_H_
6#define _RTE_COMPRESSDEV_INTERNAL_H_
7
8/* rte_compressdev_internal.h
9 * This file holds Compressdev private data structures.
10 */
11#include <rte_log.h>
12
13#include "rte_comp.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#define RTE_COMPRESSDEV_NAME_MAX_LEN (64)
22/* Logging Macros */
23extern int compressdev_logtype;
24#define RTE_LOGTYPE_COMPRESSDEV compressdev_logtype
25
26#define COMPRESSDEV_LOG(level, ...) \
27 RTE_LOG_LINE_PREFIX(level, COMPRESSDEV, "%s(): ", __func__, __VA_ARGS__)
28
46typedef uint16_t (*compressdev_dequeue_pkt_burst_t)(void *qp,
47 struct rte_comp_op **ops, uint16_t nb_ops);
48
68typedef uint16_t (*compressdev_enqueue_pkt_burst_t)(void *qp,
69 struct rte_comp_op **ops, uint16_t nb_ops);
70
73 compressdev_dequeue_pkt_burst_t dequeue_burst;
75 compressdev_enqueue_pkt_burst_t enqueue_burst;
82 uint64_t feature_flags;
84 struct rte_device *device;
87 __extension__
88 uint8_t attached : 1;
90};
91
100 uint8_t dev_id;
104 char name[RTE_COMPRESSDEV_NAME_MAX_LEN];
107 __extension__
108 uint8_t dev_started : 1;
118};
119
120#ifdef __cplusplus
121}
122#endif
123
124#endif
#define __rte_cache_aligned
Definition: rte_common.h:627
__extension__ uint8_t dev_started
compressdev_enqueue_pkt_burst_t enqueue_burst
struct rte_compressdev_data * data
struct rte_device * device
__extension__ uint8_t attached
compressdev_dequeue_pkt_burst_t dequeue_burst
struct rte_compressdev_ops * dev_ops