]>
Commit | Line | Data |
---|---|---|
a3c4b484 JP |
1 | .TH DEVLINK\-DEV 8 "14 Mar 2016" "iproute2" "Linux" |
2 | .SH NAME | |
3 | devlink-dev \- devlink device configuration | |
4 | .SH SYNOPSIS | |
5 | .sp | |
6 | .ad l | |
7 | .in +8 | |
8 | .ti -8 | |
9 | .B devlink | |
10 | .RI "[ " OPTIONS " ]" | |
11 | .B dev | |
12 | .RI " { " COMMAND " | " | |
13 | .BR help " }" | |
14 | .sp | |
15 | ||
16 | .ti -8 | |
17 | .IR OPTIONS " := { " | |
18 | \fB\-V\fR[\fIersion\fR] | | |
43f35be4 | 19 | \fB\-n\fR[\fIno-nice-names\fR] } |
a3c4b484 JP |
20 | |
21 | .ti -8 | |
22 | .B devlink dev show | |
23 | .RI "[ " DEV " ]" | |
24 | ||
25 | .ti -8 | |
26 | .B devlink dev help | |
27 | ||
f57856fa OG |
28 | .ti -8 |
29 | .BR "devlink dev eswitch set" | |
30 | .IR DEV | |
31 | .RI "[ " | |
32 | .BR mode " { " legacy " | " switchdev " } " | |
33 | .RI "]" | |
6566ca8c RD |
34 | .RI "[ " |
35 | .BR inline-mode " { " none " | " link " | " network " | " transport " } " | |
36 | .RI "]" | |
d315b706 RD |
37 | .RI "[ " |
38 | .BR encap " { " disable " | " enable " } " | |
39 | .RI "]" | |
f57856fa OG |
40 | |
41 | .ti -8 | |
42 | .BR "devlink dev eswitch show" | |
43 | .IR DEV | |
44 | ||
13925ae9 MS |
45 | .ti -8 |
46 | .BR "devlink dev param set" | |
47 | .IR DEV | |
48 | .BR name | |
49 | .IR PARAMETER | |
50 | .BR value | |
51 | .IR VALUE | |
52 | .BR cmode " { " runtime " | " driverinit " | " permanent " } " | |
53 | ||
54 | .ti -8 | |
55 | .BR "devlink dev param show" | |
56 | .RI "[ " | |
57 | .IR DEV | |
58 | .BR name | |
59 | .IR PARAMETER | |
60 | .RI "]" | |
61 | ||
58b48c5d AS |
62 | .ti -8 |
63 | .BR "devlink dev reload" | |
64 | .IR DEV | |
65 | ||
05bc89e9 JK |
66 | .ti -8 |
67 | .BR "devlink dev info" | |
68 | .RI "[ " | |
69 | .IR DEV | |
70 | .RI "]" | |
71 | ||
d326d79c JK |
72 | .ti -8 |
73 | .BR "devlink dev flash" | |
74 | .IR DEV | |
75 | .BR file | |
76 | .IR PATH | |
77 | .RI "[" | |
78 | .BR target | |
79 | .IR ID | |
80 | .RI "]" | |
81 | ||
a3c4b484 JP |
82 | .SH "DESCRIPTION" |
83 | .SS devlink dev show - display devlink device attributes | |
84 | ||
85 | .PP | |
86 | .I "DEV" | |
87 | - specifies the devlink device to show. | |
88 | If this argument is omitted all devices are listed. | |
89 | ||
90 | .in +4 | |
91 | Format is: | |
92 | .in +2 | |
93 | BUS_NAME/BUS_ADDRESS | |
94 | ||
f57856fa OG |
95 | .SS devlink dev eswitch show - display devlink device eswitch attributes |
96 | .SS devlink dev eswitch set - sets devlink device eswitch attributes | |
97 | ||
98 | .TP | |
99 | .BR mode " { " legacy " | " switchdev " } " | |
a93b6bb3 | 100 | Set eswitch mode |
f57856fa OG |
101 | |
102 | .I legacy | |
103 | - Legacy SRIOV | |
104 | ||
105 | .I switchdev | |
106 | - SRIOV switchdev offloads | |
107 | ||
6566ca8c RD |
108 | .TP |
109 | .BR inline-mode " { " none " | " link " | " network " | " transport " } " | |
110 | Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering. | |
111 | ||
112 | .I none | |
113 | - None | |
114 | ||
115 | .I link | |
116 | - L2 mode | |
117 | ||
118 | .I network | |
119 | - L3 mode | |
120 | ||
121 | .I transport | |
122 | - L4 mode | |
123 | ||
d315b706 RD |
124 | .TP |
125 | .BR encap " { " disable " | " enable " } " | |
126 | Set eswitch encapsulation support | |
127 | ||
128 | .I disable | |
129 | - Disable encapsulation support | |
130 | ||
131 | .I enable | |
132 | - Enable encapsulation support | |
133 | ||
13925ae9 MS |
134 | .SS devlink dev param set - set new value to devlink device configuration parameter |
135 | ||
136 | .TP | |
137 | .BI name " PARAMETER" | |
138 | Specify parameter name to set. | |
139 | ||
140 | .TP | |
141 | .BI value " VALUE" | |
142 | New value to set. | |
143 | ||
144 | .TP | |
145 | .BR cmode " { " runtime " | " driverinit " | " permanent " } " | |
146 | Configuration mode in which the new value is set. | |
147 | ||
148 | .I runtime | |
149 | - Set new value while driver is running. This configuration mode doesn't require any reset to apply the new value. | |
150 | ||
151 | .I driverinit | |
152 | - Set new value which will be applied during driver initialization. This configuration mode requires restart driver by devlink reload command to apply the new value. | |
153 | ||
154 | .I permanent | |
155 | - New value is written to device's non-volatile memory. This configuration mode requires hard reset to apply the new value. | |
156 | ||
157 | .SS devlink dev param show - display devlink device supported configuration parameters attributes | |
158 | ||
159 | .BR name | |
160 | .IR PARAMETER | |
161 | Specify parameter name to show. | |
162 | If this argument is omitted all parameters supported by devlink devices are listed. | |
163 | ||
58b48c5d AS |
164 | .SS devlink dev reload - perform hot reload of the driver. |
165 | ||
166 | .PP | |
167 | .I "DEV" | |
168 | - Specifies the devlink device to reload. | |
169 | ||
05bc89e9 JK |
170 | .SS devlink dev info - display device information. |
171 | Display device information provided by the driver. This command can be used | |
172 | to query versions of the hardware components or device components which | |
173 | can't be updated ( | |
174 | .I fixed | |
175 | ) as well as device firmware which can be updated. For firmware components | |
176 | .I running | |
177 | displays the versions of firmware currently loaded into the device, while | |
178 | .I stored | |
179 | reports the versions in device's flash. | |
180 | .I Running | |
181 | and | |
182 | .I stored | |
183 | versions may differ after flash has been updated, but before reboot. | |
184 | ||
185 | .PP | |
186 | .I "DEV" | |
187 | - specifies the devlink device to show. | |
188 | If this argument is omitted all devices are listed. | |
189 | ||
d326d79c JK |
190 | .SS devlink dev flash - write device's non-volatile memory. |
191 | ||
192 | .PP | |
193 | .I "DEV" | |
194 | - specifies the devlink device to write to. | |
195 | ||
196 | .BR file | |
197 | .I PATH | |
198 | - Path to the file which will be written into device's flash. The path needs | |
199 | to be relative to one of the directories searched by the kernel firmware loaded, | |
200 | such as /lib/firmware. | |
201 | ||
202 | .BR component | |
203 | .I NAME | |
204 | - If device stores multiple firmware images in non-volatile memory, this | |
205 | parameter may be used to indicate which firmware image should be written. | |
206 | The value of | |
207 | .I NAME | |
208 | should match the component names from | |
209 | .B "devlink dev info" | |
210 | and may be driver-dependent. | |
211 | ||
a3c4b484 JP |
212 | .SH "EXAMPLES" |
213 | .PP | |
214 | devlink dev show | |
215 | .RS 4 | |
216 | Shows the state of all devlink devices on the system. | |
217 | .RE | |
218 | .PP | |
219 | devlink dev show pci/0000:01:00.0 | |
220 | .RS 4 | |
221 | Shows the state of specified devlink device. | |
f57856fa OG |
222 | .RE |
223 | .PP | |
224 | devlink dev eswitch show pci/0000:01:00.0 | |
225 | .RS 4 | |
226 | Shows the eswitch mode of specified devlink device. | |
227 | .RE | |
228 | .PP | |
229 | devlink dev eswitch set pci/0000:01:00.0 mode switchdev | |
230 | .RS 4 | |
231 | Sets the eswitch mode of specified devlink device to switchdev. | |
58b48c5d AS |
232 | .RE |
233 | .PP | |
13925ae9 MS |
234 | devlink dev param show pci/0000:01:00.0 name max_macs |
235 | .RS 4 | |
236 | Shows the parameter max_macs attributes. | |
237 | .RE | |
238 | .PP | |
239 | devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime | |
240 | .RS 4 | |
241 | Sets the parameter internal_error_reset of specified devlink device to true. | |
242 | .RE | |
243 | .PP | |
58b48c5d AS |
244 | devlink dev reload pci/0000:01:00.0 |
245 | .RS 4 | |
246 | Performs hot reload of specified devlink device. | |
9b13cddf JP |
247 | .RE |
248 | .PP | |
249 | devlink dev flash pci/0000:01:00.0 file firmware.bin | |
250 | .RS 4 | |
251 | Flashes the specified devlink device with provided firmware file name. If the driver supports it, user gets updates about the flash status. For example: | |
252 | .br | |
253 | Preparing to flash | |
254 | .br | |
255 | Flashing 100% | |
256 | .br | |
257 | Flashing done | |
a3c4b484 JP |
258 | |
259 | .SH SEE ALSO | |
260 | .BR devlink (8), | |
261 | .BR devlink-port (8), | |
4bf138d6 | 262 | .BR devlink-sb (8), |
a3c4b484 JP |
263 | .BR devlink-monitor (8), |
264 | .br | |
265 | ||
266 | .SH AUTHOR | |
267 | Jiri Pirko <jiri@mellanox.com> |