DPDK 25.03.0-rc0
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
17extern "C" {
18#endif
19
21#define RTE_VDPA_STATS_NAME_SIZE 64
22
23struct rte_vdpa_device;
24
35 uint64_t id;
36 uint64_t value;
37};
38
48};
49
58struct rte_vdpa_device *
60
69struct rte_device *
70rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev);
71
82int
83rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num);
84
95int
96rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features);
97
108int
109rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features);
110
131int
132rte_vdpa_get_stats_names(struct rte_vdpa_device *dev,
133 struct rte_vdpa_stat_name *stats_names,
134 unsigned int size);
135
158int
159rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid,
160 struct rte_vdpa_stat *stats, unsigned int n);
171int
172rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid);
173
174#ifdef __cplusplus
175}
176#endif
177
178#endif /* _RTE_VDPA_H_ */
struct rte_device * rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev)
int rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num)
int rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features)
int rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid)
struct rte_vdpa_device * rte_vdpa_find_device_by_name(const char *name)
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_features(struct rte_vdpa_device *dev, uint64_t *features)
int rte_vdpa_get_stats_names(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size)
#define RTE_VDPA_STATS_NAME_SIZE
Definition: rte_vdpa.h:21
char name[RTE_VDPA_STATS_NAME_SIZE]
Definition: rte_vdpa.h:47
uint64_t value
Definition: rte_vdpa.h:36
uint64_t id
Definition: rte_vdpa.h:35