DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
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
13
14
#include <stdint.h>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
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
46
struct
rte_vdpa_stat_name
{
47
char
name
[
RTE_VDPA_STATS_NAME_SIZE
];
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
131
int
132
rte_vdpa_get_stats_names
(
struct
rte_vdpa_device *dev,
133
struct
rte_vdpa_stat_name
*stats_names,
134
unsigned
int
size);
135
158
int
159
rte_vdpa_get_stats
(
struct
rte_vdpa_device *dev, uint16_t qid,
160
struct
rte_vdpa_stat
*stats,
unsigned
int
n);
171
int
172
rte_vdpa_reset_stats
(
struct
rte_vdpa_device *dev, uint16_t qid);
173
174
#ifdef __cplusplus
175
}
176
#endif
177
178
#endif
/* _RTE_VDPA_H_ */
rte_vdpa_get_rte_device
struct rte_device * rte_vdpa_get_rte_device(struct rte_vdpa_device *vdpa_dev)
rte_vdpa_get_queue_num
int rte_vdpa_get_queue_num(struct rte_vdpa_device *dev, uint32_t *queue_num)
rte_vdpa_get_protocol_features
int rte_vdpa_get_protocol_features(struct rte_vdpa_device *dev, uint64_t *features)
rte_vdpa_reset_stats
int rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid)
rte_vdpa_find_device_by_name
struct rte_vdpa_device * rte_vdpa_find_device_by_name(const char *name)
rte_vdpa_get_stats
int rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid, struct rte_vdpa_stat *stats, unsigned int n)
rte_vdpa_get_features
int rte_vdpa_get_features(struct rte_vdpa_device *dev, uint64_t *features)
rte_vdpa_get_stats_names
int rte_vdpa_get_stats_names(struct rte_vdpa_device *dev, struct rte_vdpa_stat_name *stats_names, unsigned int size)
RTE_VDPA_STATS_NAME_SIZE
#define RTE_VDPA_STATS_NAME_SIZE
Definition
rte_vdpa.h:21
rte_vdpa_stat_name
Definition
rte_vdpa.h:46
rte_vdpa_stat_name::name
char name[RTE_VDPA_STATS_NAME_SIZE]
Definition
rte_vdpa.h:47
rte_vdpa_stat
Definition
rte_vdpa.h:34
rte_vdpa_stat::value
uint64_t value
Definition
rte_vdpa.h:36
rte_vdpa_stat::id
uint64_t id
Definition
rte_vdpa.h:35
lib
vhost
rte_vdpa.h
Generated by
1.17.0