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