DPDK  21.11.8
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 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
18 #include <stdint.h>
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 
125 int
126 rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m);
127 
148 int
149 rte_vdpa_get_stats_names(struct rte_vdpa_device *dev,
150  struct rte_vdpa_stat_name *stats_names,
151  unsigned int size);
152 
175 int
176 rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid,
177  struct rte_vdpa_stat *stats, unsigned int n);
188 int
189 rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid);
190 
191 #ifdef __cplusplus
192 }
193 #endif
194 
195 #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_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)