DPDK  20.08.0
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 
15 #define RTE_VDPA_STATS_NAME_SIZE 64
16 
17 struct rte_vdpa_device;
18 
28 struct rte_vdpa_stat {
29  uint64_t id;
30  uint64_t value;
31 };
32 
42 };
43 
55 __rte_experimental
56 struct rte_vdpa_device *
57 rte_vdpa_find_device_by_name(const char *name);
58 
70 __rte_experimental
71 struct rte_device *
73 
87 __rte_experimental
88 int
89 rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num);
90 
104 __rte_experimental
105 int
106 rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features);
107 
121 __rte_experimental
122 int
123 rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features);
124 
142 __rte_experimental
143 int
144 rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m);
145 
169 __rte_experimental
170 int
172  struct rte_vdpa_stat_name *stats_names,
173  unsigned int size);
174 
200 __rte_experimental
201 int
202 rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid,
203  struct rte_vdpa_stat *stats, unsigned int n);
217 __rte_experimental
218 int
219 rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid);
220 #endif /* _RTE_VDPA_H_ */
#define RTE_VDPA_STATS_NAME_SIZE
Definition: rte_vdpa.h:15
uint64_t id
Definition: rte_vdpa.h:29
__rte_experimental struct rte_vdpa_device * rte_vdpa_find_device_by_name(const char *name)
__rte_experimental int rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features)
__rte_experimental int rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid, struct rte_vdpa_stat *stats, unsigned int n)
uint64_t value
Definition: rte_vdpa.h:30
__rte_experimental int rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features)
__rte_experimental int rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)
__rte_experimental struct rte_device * rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev)
__rte_experimental int rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num)
__rte_experimental int rte_vdpa_get_stats_names(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size)
char name[RTE_VDPA_STATS_NAME_SIZE]
Definition: rte_vdpa.h:41
__rte_experimental int rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid)