DPDK  24.11.0-rc3
rte_vdpa.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4 
5 #ifndef _RTE_VDPA_H_
6 #define _RTE_VDPA_H_
7 
14 #include <stdint.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
21 #define RTE_VDPA_STATS_NAME_SIZE 64
22 
23 struct rte_vdpa_device;
24 
34 struct rte_vdpa_stat {
35  uint64_t id;
36  uint64_t value;
37 };
38 
48 };
49 
58 struct rte_vdpa_device *
59 rte_vdpa_find_device_by_name(const char *name);
60 
69 struct rte_device *
70 rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev);
71 
82 int
83 rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num);
84 
95 int
96 rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features);
97 
108 int
109 rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features);
110 
131 int
132 rte_vdpa_get_stats_names(struct rte_vdpa_device *dev,
133  struct rte_vdpa_stat_name *stats_names,
134  unsigned int size);
135 
158 int
159 rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid,
160  struct rte_vdpa_stat *stats, unsigned int n);
171 int
172 rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid);
173 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #endif /* _RTE_VDPA_H_ */
#define RTE_VDPA_STATS_NAME_SIZE
Definition: rte_vdpa.h:21
uint64_t id
Definition: rte_vdpa.h:35
struct rte_vdpa_device * rte_vdpa_find_device_by_name(const char *name)
uint64_t value
Definition: rte_vdpa.h:36
int rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num)
struct rte_device * rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev)
int rte_vdpa_get_stats_names(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size)
int rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid)
int rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid, struct rte_vdpa_stat *stats, unsigned int n)
int rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features)
int rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features)