1 .TH DEVLINK\-DEV 8 "14 Mar 2016" "iproute2" "Linux"
3 devlink-dev \- devlink device configuration
12 .RI " { " COMMAND " | "
18 \fB\-V\fR[\fIersion\fR] |
19 \fB\-n\fR[\fIno-nice-names\fR] }
29 .BR "devlink dev eswitch set"
32 .BR mode " { " legacy " | " switchdev " } "
35 .BR inline-mode " { " none " | " link " | " network " | " transport " } "
38 .BR encap " { " disable " | " enable " } "
42 .BR "devlink dev eswitch show"
46 .BR "devlink dev param set"
52 .BR cmode " { " runtime " | " driverinit " | " permanent " } "
55 .BR "devlink dev param show"
63 .BR "devlink dev reload"
67 .SS devlink dev show - display devlink device attributes
71 - specifies the devlink device to show.
72 If this argument is omitted all devices are listed.
79 .SS devlink dev eswitch show - display devlink device eswitch attributes
80 .SS devlink dev eswitch set - sets devlink device eswitch attributes
83 .BR mode " { " legacy " | " switchdev " } "
90 - SRIOV switchdev offloads
93 .BR inline-mode " { " none " | " link " | " network " | " transport " } "
94 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.
109 .BR encap " { " disable " | " enable " } "
110 Set eswitch encapsulation support
113 - Disable encapsulation support
116 - Enable encapsulation support
118 .SS devlink dev param set - set new value to devlink device configuration parameter
121 .BI name " PARAMETER"
122 Specify parameter name to set.
129 .BR cmode " { " runtime " | " driverinit " | " permanent " } "
130 Configuration mode in which the new value is set.
133 - Set new value while driver is running. This configuration mode doesn't require any reset to apply the new value.
136 - 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.
139 - New value is written to device's non-volatile memory. This configuration mode requires hard reset to apply the new value.
141 .SS devlink dev param show - display devlink device supported configuration parameters attributes
145 Specify parameter name to show.
146 If this argument is omitted all parameters supported by devlink devices are listed.
148 .SS devlink dev reload - perform hot reload of the driver.
152 - Specifies the devlink device to reload.
158 Shows the state of all devlink devices on the system.
161 devlink dev show pci/0000:01:00.0
163 Shows the state of specified devlink device.
166 devlink dev eswitch show pci/0000:01:00.0
168 Shows the eswitch mode of specified devlink device.
171 devlink dev eswitch set pci/0000:01:00.0 mode switchdev
173 Sets the eswitch mode of specified devlink device to switchdev.
176 devlink dev param show pci/0000:01:00.0 name max_macs
178 Shows the parameter max_macs attributes.
181 devlink dev param set pci/0000:01:00.0 name internal_error_reset value true cmode runtime
183 Sets the parameter internal_error_reset of specified devlink device to true.
186 devlink dev reload pci/0000:01:00.0
188 Performs hot reload of specified devlink device.
192 .BR devlink-port (8),
194 .BR devlink-monitor (8),
198 Jiri Pirko <jiri@mellanox.com>