]> git.proxmox.com Git - mirror_iproute2.git/blob - man/man8/devlink-dev.8
Merge branch 'master' into net-next
[mirror_iproute2.git] / man / man8 / devlink-dev.8
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] |
19 \fB\-n\fR[\fIno-nice-names\fR] }
20
21 .ti -8
22 .B devlink dev show
23 .RI "[ " DEV " ]"
24
25 .ti -8
26 .B devlink dev help
27
28 .ti -8
29 .BR "devlink dev eswitch set"
30 .IR DEV
31 .RI "[ "
32 .BR mode " { " legacy " | " switchdev " } "
33 .RI "]"
34 .RI "[ "
35 .BR inline-mode " { " none " | " link " | " network " | " transport " } "
36 .RI "]"
37 .RI "[ "
38 .BR encap " { " disable " | " enable " } "
39 .RI "]"
40
41 .ti -8
42 .BR "devlink dev eswitch show"
43 .IR DEV
44
45 .SH "DESCRIPTION"
46 .SS devlink dev show - display devlink device attributes
47
48 .PP
49 .I "DEV"
50 - specifies the devlink device to show.
51 If this argument is omitted all devices are listed.
52
53 .in +4
54 Format is:
55 .in +2
56 BUS_NAME/BUS_ADDRESS
57
58 .SS devlink dev eswitch show - display devlink device eswitch attributes
59 .SS devlink dev eswitch set - sets devlink device eswitch attributes
60
61 .TP
62 .BR mode " { " legacy " | " switchdev " } "
63 Set eswitch mode
64
65 .I legacy
66 - Legacy SRIOV
67
68 .I switchdev
69 - SRIOV switchdev offloads
70
71 .TP
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.
74
75 .I none
76 - None
77
78 .I link
79 - L2 mode
80
81 .I network
82 - L3 mode
83
84 .I transport
85 - L4 mode
86
87 .TP
88 .BR encap " { " disable " | " enable " } "
89 Set eswitch encapsulation support
90
91 .I disable
92 - Disable encapsulation support
93
94 .I enable
95 - Enable encapsulation support
96
97 .SH "EXAMPLES"
98 .PP
99 devlink dev show
100 .RS 4
101 Shows the state of all devlink devices on the system.
102 .RE
103 .PP
104 devlink dev show pci/0000:01:00.0
105 .RS 4
106 Shows the state of specified devlink device.
107 .RE
108 .PP
109 devlink dev eswitch show pci/0000:01:00.0
110 .RS 4
111 Shows the eswitch mode of specified devlink device.
112 .RE
113 .PP
114 devlink dev eswitch set pci/0000:01:00.0 mode switchdev
115 .RS 4
116 Sets the eswitch mode of specified devlink device to switchdev.
117
118 .SH SEE ALSO
119 .BR devlink (8),
120 .BR devlink-port (8),
121 .BR devlink-sb (8),
122 .BR devlink-monitor (8),
123 .br
124
125 .SH AUTHOR
126 Jiri Pirko <jiri@mellanox.com>