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 reload"
50 .SS devlink dev show - display devlink device attributes
54 - specifies the devlink device to show.
55 If this argument is omitted all devices are listed.
62 .SS devlink dev eswitch show - display devlink device eswitch attributes
63 .SS devlink dev eswitch set - sets devlink device eswitch attributes
66 .BR mode " { " legacy " | " switchdev " } "
73 - SRIOV switchdev offloads
76 .BR inline-mode " { " none " | " link " | " network " | " transport " } "
77 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.
92 .BR encap " { " disable " | " enable " } "
93 Set eswitch encapsulation support
96 - Disable encapsulation support
99 - Enable encapsulation support
101 .SS devlink dev reload - perform hot reload of the driver.
105 - Specifies the devlink device to reload.
111 Shows the state of all devlink devices on the system.
114 devlink dev show pci/0000:01:00.0
116 Shows the state of specified devlink device.
119 devlink dev eswitch show pci/0000:01:00.0
121 Shows the eswitch mode of specified devlink device.
124 devlink dev eswitch set pci/0000:01:00.0 mode switchdev
126 Sets the eswitch mode of specified devlink device to switchdev.
129 devlink dev reload pci/0000:01:00.0
131 Performs hot reload of specified devlink device.
135 .BR devlink-port (8),
137 .BR devlink-monitor (8),
141 Jiri Pirko <jiri@mellanox.com>