DPDK 22.11.5
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#ifdef __cplusplus
9extern "C" {
10#endif
11
12/* rte_compressdev_internal.h
13 * This file holds Compressdev private data structures.
14 */
15#include <rte_log.h>
16
17#include "rte_comp.h"
18
19#define RTE_COMPRESSDEV_NAME_MAX_LEN (64)
22/* Logging Macros */
23extern int compressdev_logtype;
24#define COMPRESSDEV_LOG(level, fmt, args...) \
25 rte_log(RTE_LOG_ ## level, compressdev_logtype, "%s(): " fmt "\n", \
26 __func__, ##args)
27
45typedef uint16_t (*compressdev_dequeue_pkt_burst_t)(void *qp,
46 struct rte_comp_op **ops, uint16_t nb_ops);
47
67typedef uint16_t (*compressdev_enqueue_pkt_burst_t)(void *qp,
68 struct rte_comp_op **ops, uint16_t nb_ops);
69
72 compressdev_dequeue_pkt_burst_t dequeue_burst;
74 compressdev_enqueue_pkt_burst_t enqueue_burst;
81 uint64_t feature_flags;
83 struct rte_device *device;
86 __extension__
87 uint8_t attached : 1;
90
99 uint8_t dev_id;
103 char name[RTE_COMPRESSDEV_NAME_MAX_LEN];
106 __extension__
107 uint8_t dev_started : 1;
118
119#ifdef __cplusplus
120}
121#endif
122
123#endif
#define __rte_cache_aligned
Definition: rte_common.h:440
char name[RTE_COMPRESSDEV_NAME_MAX_LEN]
__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