Debian Codegraph @

upstream/opensuse-leap-16-1/man8/vdpa-dev.8

raw
1 .TH DEVLINK\-DEV 8 "5 Jan 2021" "iproute2" "Linux"
2 .SH NAME
3 vdpa-dev \- vdpa device configuration
4 .SH SYNOPSIS
5 .sp
6 .ad l
7 .in +8
8 .ti -8
9 .B vdpa
10 .B dev
11 .RI "[ " OPTIONS " ] "
12 .RI " { " COMMAND | " "
13 .BR help " }"
14 .sp
15
16 .ti -8
17 .IR OPTIONS " := { "
18 \fB\-V\fR[\fIersion\fR]
19 }
20
21 .ti -8
22 .B vdpa dev show
23 .RI "[ " DEV " ]"
24
25 .ti -8
26 .B vdpa dev help
27
28 .ti -8
29 .B vdpa dev add
30 .B name
31 .I NAME
32 .B mgmtdev
33 .I MGMTDEV
34 .RI "[ device_features " DEVICE_FEATURES " ]"
35 .RI "[ mac " MACADDR " ]"
36 .RI "[ mtu " MTU " ]"
37 .RI "[ max_vqp " MAX_VQ_PAIRS " ]"
38
39 .ti -8
40 .B vdpa dev del
41 .I DEV
42
43 .ti -8
44 .B vdpa dev config show
45 .RI "[ " DEV " ]"
46
47 .ti -8
48 .B vdpa dev vstats show
49 .I DEV
50 .B qidx
51 .I QUEUE_INDEX
52
53
54 .SH "DESCRIPTION"
55 .SS vdpa dev show - display vdpa device attributes
56
57 .PP
58 .I "DEV"
59 - specifies the vdpa device to show.
60 If this argument is omitted all devices are listed.
61
62 .in +4
63 Format is:
64 .in +2
65 VDPA_DEVICE_NAME
66
67 .SS vdpa dev add - add a new vdpa device.
68
69 .TP
70 .BI name " NAME"
71 Name of the new vdpa device to add.
72
73 .TP
74 .BI mgmtdev " MGMTDEV"
75 Name of the management device to use for device addition.
76
77 .PP
78 .BI device_features " DEVICE_FEATURES"
79 Specifies the virtio device features bit-mask that is provisioned for the new vdpa device.
80
81 The bits can be found under include/uapi/linux/virtio*h.
82
83 see macros such as VIRTIO_F_ and VIRTIO_XXX(e.g NET)_F_ for specific bit values.
84
85 This is optional.
86
87 .BI mac " MACADDR"
88 - specifies the mac address for the new vdpa device.
89 This is applicable only for the network type of vdpa device. This is optional.
90
91 .BI mtu " MTU"
92 - specifies the mtu for the new vdpa device.
93 This is applicable only for the network type of vdpa device. This is optional.
94
95 .SS vdpa dev del - Delete the vdpa device.
96
97 .PP
98 .I "DEV"
99 - specifies the vdpa device to delete.
100
101 .SS vdpa dev config show - Show configuration of specific device or all devices.
102
103 .PP
104 .I "DEV"
105 - specifies the vdpa device to show its configuration.
106 If this argument is omitted all devices configuration is listed.
107
108 .in +4
109 Format is:
110 .in +2
111 VDPA_DEVICE_NAME
112
113 .SS vdpa dev vstats show - shows vendor specific statistics for the given device and virtqueue index. The information is presented as name-value pairs where name is the name of the field and value is a numeric value for it.
114
115 .TP
116 .BI "DEV"
117 - specifies the vdpa device to query
118
119 .TP
120 .BI qidx " QUEUE_INDEX"
121 - specifies the virtqueue index to query
122
123 .SH "EXAMPLES"
124 .PP
125 vdpa dev show
126 .RS 4
127 Shows the all vdpa devices on the system.
128 .RE
129 .PP
130 vdpa dev show foo
131 .RS 4
132 Shows the specified vdpa device.
133 .RE
134 .PP
135 vdpa dev add name foo mgmtdev vdpa_sim_net
136 .RS 4
137 Add the vdpa device named foo on the management device vdpa_sim_net.
138 .RE
139 .PP
140 vdpa dev add name foo mgmtdev vdpa_sim_net device_features 0x300020000
141 .RS 4
142 Add the vdpa device named foo on the management device vdpa_sim_net with device_features of 0x300020000
143 .RE
144 .PP
145 vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55
146 .RS 4
147 Add the vdpa device named foo on the management device vdpa_sim_net with mac address of 00:11:22:33:44:55.
148 .RE
149 .PP
150 vdpa dev add name foo mgmtdev vdpa_sim_net mac 00:11:22:33:44:55 mtu 9000
151 .RS 4
152 Add the vdpa device named foo on the management device vdpa_sim_net with mac address of 00:11:22:33:44:55 and mtu of 9000 bytes.
153 .RE
154 .PP
155 vdpa dev add name foo mgmtdev auxiliary/mlx5_core.sf.1 mac 00:11:22:33:44:55 max_vqp 8
156 .RS 4
157 Add the vdpa device named foo on the management device auxiliary/mlx5_core.sf.1 with mac address of 00:11:22:33:44:55 and max 8 virtqueue pairs
158 .RE
159 .PP
160 vdpa dev del foo
161 .RS 4
162 Delete the vdpa device named foo which was previously created.
163 .RE
164 .PP
165 vdpa dev config show foo
166 .RS 4
167 Shows the vdpa device configuration of device named foo.
168 .RE
169 .PP
170 vdpa dev vstats show vdpa0 qidx 1
171 .RS 4
172 Shows vendor specific statistics information for vdpa device vdpa0 and virtqueue index 1
173 .RE
174
175 .SH SEE ALSO
176 .BR vdpa (8),
177 .BR vdpa-mgmtdev (8),
178 .br
179
180 .SH AUTHOR
181 Parav Pandit <[email protected]>