]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/devlink-dev.8
devlink: add info subcommand
[mirror_iproute2.git] / man / man8 / devlink-dev.8
CommitLineData
a3c4b484
JP
1.TH DEVLINK\-DEV 8 "14 Mar 2016" "iproute2" "Linux"
2.SH NAME
3devlink-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
a3c4b484
JP
72.SH "DESCRIPTION"
73.SS devlink dev show - display devlink device attributes
74
75.PP
76.I "DEV"
77- specifies the devlink device to show.
78If this argument is omitted all devices are listed.
79
80.in +4
81Format is:
82.in +2
83BUS_NAME/BUS_ADDRESS
84
f57856fa
OG
85.SS devlink dev eswitch show - display devlink device eswitch attributes
86.SS devlink dev eswitch set - sets devlink device eswitch attributes
87
88.TP
89.BR mode " { " legacy " | " switchdev " } "
a93b6bb3 90Set eswitch mode
f57856fa
OG
91
92.I legacy
93- Legacy SRIOV
94
95.I switchdev
96- SRIOV switchdev offloads
97
6566ca8c
RD
98.TP
99.BR inline-mode " { " none " | " link " | " network " | " transport " } "
100Some 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.
101
102.I none
103- None
104
105.I link
106- L2 mode
107
108.I network
109- L3 mode
110
111.I transport
112- L4 mode
113
d315b706
RD
114.TP
115.BR encap " { " disable " | " enable " } "
116Set eswitch encapsulation support
117
118.I disable
119- Disable encapsulation support
120
121.I enable
122- Enable encapsulation support
123
13925ae9
MS
124.SS devlink dev param set - set new value to devlink device configuration parameter
125
126.TP
127.BI name " PARAMETER"
128Specify parameter name to set.
129
130.TP
131.BI value " VALUE"
132New value to set.
133
134.TP
135.BR cmode " { " runtime " | " driverinit " | " permanent " } "
136Configuration mode in which the new value is set.
137
138.I runtime
139- Set new value while driver is running. This configuration mode doesn't require any reset to apply the new value.
140
141.I driverinit
142- 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.
143
144.I permanent
145- New value is written to device's non-volatile memory. This configuration mode requires hard reset to apply the new value.
146
147.SS devlink dev param show - display devlink device supported configuration parameters attributes
148
149.BR name
150.IR PARAMETER
151Specify parameter name to show.
152If this argument is omitted all parameters supported by devlink devices are listed.
153
58b48c5d
AS
154.SS devlink dev reload - perform hot reload of the driver.
155
156.PP
157.I "DEV"
158- Specifies the devlink device to reload.
159
05bc89e9
JK
160.SS devlink dev info - display device information.
161Display device information provided by the driver. This command can be used
162to query versions of the hardware components or device components which
163can't be updated (
164.I fixed
165) as well as device firmware which can be updated. For firmware components
166.I running
167displays the versions of firmware currently loaded into the device, while
168.I stored
169reports the versions in device's flash.
170.I Running
171and
172.I stored
173versions may differ after flash has been updated, but before reboot.
174
175.PP
176.I "DEV"
177- specifies the devlink device to show.
178If this argument is omitted all devices are listed.
179
a3c4b484
JP
180.SH "EXAMPLES"
181.PP
182devlink dev show
183.RS 4
184Shows the state of all devlink devices on the system.
185.RE
186.PP
187devlink dev show pci/0000:01:00.0
188.RS 4
189Shows the state of specified devlink device.
f57856fa
OG
190.RE
191.PP
192devlink dev eswitch show pci/0000:01:00.0
193.RS 4
194Shows the eswitch mode of specified devlink device.
195.RE
196.PP
197devlink dev eswitch set pci/0000:01:00.0 mode switchdev
198.RS 4
199Sets the eswitch mode of specified devlink device to switchdev.
58b48c5d
AS
200.RE
201.PP
13925ae9
MS
202devlink dev param show pci/0000:01:00.0 name max_macs
203.RS 4
204Shows the parameter max_macs attributes.
205.RE
206.PP
207devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime
208.RS 4
209Sets the parameter internal_error_reset of specified devlink device to true.
210.RE
211.PP
58b48c5d
AS
212devlink dev reload pci/0000:01:00.0
213.RS 4
214Performs hot reload of specified devlink device.
a3c4b484
JP
215
216.SH SEE ALSO
217.BR devlink (8),
218.BR devlink-port (8),
4bf138d6 219.BR devlink-sb (8),
a3c4b484
JP
220.BR devlink-monitor (8),
221.br
222
223.SH AUTHOR
224Jiri Pirko <jiri@mellanox.com>