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 .SS devlink dev show - display devlink device attributes
50 - specifies the devlink device to show.
51 If this argument is omitted all devices are listed.
58 .SS devlink dev eswitch show - display devlink device eswitch attributes
59 .SS devlink dev eswitch set - sets devlink device eswitch attributes
62 .BR mode " { " legacy " | " switchdev " } "
69 - SRIOV switchdev offloads
72 .BR inline-mode " { " none " | " link " | " network " | " transport " } "
73 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.
88 .BR encap " { " disable " | " enable " } "
89 Set eswitch encapsulation support
92 - Disable encapsulation support
95 - Enable encapsulation support
101 Shows the state of all devlink devices on the system.
104 devlink dev show pci/0000:01:00.0
106 Shows the state of specified devlink device.
109 devlink dev eswitch show pci/0000:01:00.0
111 Shows the eswitch mode of specified devlink device.
114 devlink dev eswitch set pci/0000:01:00.0 mode switchdev
116 Sets the eswitch mode of specified devlink device to switchdev.
120 .BR devlink-port (8),
122 .BR devlink-monitor (8),
126 Jiri Pirko <jiri@mellanox.com>