DPDK  19.02.0
rte_pdump.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2016 Intel Corporation
3  */
4 
5 #ifndef _RTE_PDUMP_H_
6 #define _RTE_PDUMP_H_
7 
15 #include <stdint.h>
16 #include <rte_mempool.h>
17 #include <rte_ring.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #define RTE_PDUMP_ALL_QUEUES UINT16_MAX
24 
25 enum {
26  RTE_PDUMP_FLAG_RX = 1, /* receive direction */
27  RTE_PDUMP_FLAG_TX = 2, /* transmit direction */
28  /* both receive and transmit directions */
29  RTE_PDUMP_FLAG_RXTX = (RTE_PDUMP_FLAG_RX|RTE_PDUMP_FLAG_TX)
30 };
31 
40 int
41 rte_pdump_init(void);
42 
51 int
52 rte_pdump_uninit(void);
53 
77 int
78 rte_pdump_enable(uint16_t port, uint16_t queue, uint32_t flags,
79  struct rte_ring *ring,
80  struct rte_mempool *mp,
81  void *filter);
82 
100 int
101 rte_pdump_disable(uint16_t port, uint16_t queue, uint32_t flags);
102 
127 int
128 rte_pdump_enable_by_deviceid(char *device_id, uint16_t queue,
129  uint32_t flags,
130  struct rte_ring *ring,
131  struct rte_mempool *mp,
132  void *filter);
133 
152 int
153 rte_pdump_disable_by_deviceid(char *device_id, uint16_t queue,
154  uint32_t flags);
155 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif /* _RTE_PDUMP_H_ */