DPDK  24.11.0-rc3
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
16 extern "C" {
17 #endif
18 
19 #define RTE_COMPRESSDEV_NAME_MAX_LEN (64)
20 
22 /* Logging Macros */
23 extern 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 
46 typedef uint16_t (*compressdev_dequeue_pkt_burst_t)(void *qp,
47  struct rte_comp_op **ops, uint16_t nb_ops);
48 
68 typedef 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;
111  void **queue_pairs;
113  uint16_t nb_queue_pairs;
116  void *dev_private;
118 };
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif
compressdev_enqueue_pkt_burst_t enqueue_burst
#define __rte_cache_aligned
Definition: rte_common.h:627
compressdev_dequeue_pkt_burst_t dequeue_burst
struct rte_device * device
struct rte_compressdev_ops * dev_ops
__extension__ uint8_t dev_started
struct rte_compressdev_data * data
__extension__ uint8_t attached