DPDK  18.11.11
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 #define RTE_COMPRESSDEV_NAME_MAX_LEN (64)
16 
18 /* Logging Macros */
19 extern int compressdev_logtype;
20 #define COMPRESSDEV_LOG(level, fmt, args...) \
21  rte_log(RTE_LOG_ ## level, compressdev_logtype, "%s(): "fmt "\n", \
22  __func__, ##args)
23 
41 typedef uint16_t (*compressdev_dequeue_pkt_burst_t)(void *qp,
42  struct rte_comp_op **ops, uint16_t nb_ops);
43 
63 typedef uint16_t (*compressdev_enqueue_pkt_burst_t)(void *qp,
64  struct rte_comp_op **ops, uint16_t nb_ops);
65 
68  compressdev_dequeue_pkt_burst_t dequeue_burst;
70  compressdev_enqueue_pkt_burst_t enqueue_burst;
77  uint64_t feature_flags;
79  struct rte_device *device;
82  __extension__
83  uint8_t attached : 1;
86 
95  uint8_t dev_id;
97  uint8_t socket_id;
99  char name[RTE_COMPRESSDEV_NAME_MAX_LEN];
102  __extension__
103  uint8_t dev_started : 1;
106  void **queue_pairs;
108  uint16_t nb_queue_pairs;
111  void *dev_private;
114 #endif
compressdev_enqueue_pkt_burst_t enqueue_burst
compressdev_dequeue_pkt_burst_t dequeue_burst
struct rte_device * device
char name[RTE_COMPRESSDEV_NAME_MAX_LEN]
struct rte_compressdev_ops * dev_ops
__extension__ uint8_t dev_started
struct rte_compressdev_data * data
__extension__ uint8_t attached
#define __rte_cache_aligned
Definition: rte_memory.h:66