DPDK  23.03.0
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
9 extern "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)
20 
22 /* Logging Macros */
23 extern 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 
45 typedef uint16_t (*compressdev_dequeue_pkt_burst_t)(void *qp,
46  struct rte_comp_op **ops, uint16_t nb_ops);
47 
67 typedef 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;
110  void **queue_pairs;
112  uint16_t nb_queue_pairs;
115  void *dev_private;
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif
compressdev_enqueue_pkt_burst_t enqueue_burst
compressdev_dequeue_pkt_burst_t dequeue_burst
struct rte_device * device
struct rte_compressdev_ops * dev_ops
#define __rte_cache_aligned
Definition: rte_common.h:440
__extension__ uint8_t dev_started
struct rte_compressdev_data * data
__extension__ uint8_t attached