DPDK  21.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 
14 #include <stdint.h>
15 
17 #define RTE_VDPA_STATS_NAME_SIZE 64
18 
19 struct rte_vdpa_device;
20 
30 struct rte_vdpa_stat {
31  uint64_t id;
32  uint64_t value;
33 };
34 
44 };
45 
54 struct rte_vdpa_device *
55 rte_vdpa_find_device_by_name(const char *name);
56 
65 struct rte_device *
67 
78 int
79 rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num);
80 
91 int
92 rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features);
93 
104 int
105 rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features);
106 
121 int
122 rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m);
123 
144 int
146  struct rte_vdpa_stat_name *stats_names,
147  unsigned int size);
148 
171 int
172 rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid,
173  struct rte_vdpa_stat *stats, unsigned int n);
184 int
185 rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid);
186 #endif /* _RTE_VDPA_H_ */
#define RTE_VDPA_STATS_NAME_SIZE
Definition: rte_vdpa.h:17
uint64_t id
Definition: rte_vdpa.h:31
struct rte_vdpa_device * rte_vdpa_find_device_by_name(const char *name)
uint64_t value
Definition: rte_vdpa.h:32
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_relay_vring_used(int vid, uint16_t qid, void *vring_m)
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)