]> git.proxmox.com Git - mirror_iproute2.git/blob - man/man8/devlink-dev.8
ip-xfrm: Add support for OUTPUT_MARK
[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 .ti -8
46 .BR "devlink dev reload"
47 .IR DEV
48
49 .SH "DESCRIPTION"
50 .SS devlink dev show - display devlink device attributes
51
52 .PP
53 .I "DEV"
54 - specifies the devlink device to show.
55 If this argument is omitted all devices are listed.
56
57 .in +4
58 Format is:
59 .in +2
60 BUS_NAME/BUS_ADDRESS
61
62 .SS devlink dev eswitch show - display devlink device eswitch attributes
63 .SS devlink dev eswitch set - sets devlink device eswitch attributes
64
65 .TP
66 .BR mode " { " legacy " | " switchdev " } "
67 Set eswitch mode
68
69 .I legacy
70 - Legacy SRIOV
71
72 .I switchdev
73 - SRIOV switchdev offloads
74
75 .TP
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.
78
79 .I none
80 - None
81
82 .I link
83 - L2 mode
84
85 .I network
86 - L3 mode
87
88 .I transport
89 - L4 mode
90
91 .TP
92 .BR encap " { " disable " | " enable " } "
93 Set eswitch encapsulation support
94
95 .I disable
96 - Disable encapsulation support
97
98 .I enable
99 - Enable encapsulation support
100
101 .SS devlink dev reload - perform hot reload of the driver.
102
103 .PP
104 .I "DEV"
105 - Specifies the devlink device to reload.
106
107 .SH "EXAMPLES"
108 .PP
109 devlink dev show
110 .RS 4
111 Shows the state of all devlink devices on the system.
112 .RE
113 .PP
114 devlink dev show pci/0000:01:00.0
115 .RS 4
116 Shows the state of specified devlink device.
117 .RE
118 .PP
119 devlink dev eswitch show pci/0000:01:00.0
120 .RS 4
121 Shows the eswitch mode of specified devlink device.
122 .RE
123 .PP
124 devlink dev eswitch set pci/0000:01:00.0 mode switchdev
125 .RS 4
126 Sets the eswitch mode of specified devlink device to switchdev.
127 .RE
128 .PP
129 devlink dev reload pci/0000:01:00.0
130 .RS 4
131 Performs hot reload of specified devlink device.
132
133 .SH SEE ALSO
134 .BR devlink (8),
135 .BR devlink-port (8),
136 .BR devlink-sb (8),
137 .BR devlink-monitor (8),
138 .br
139
140 .SH AUTHOR
141 Jiri Pirko <jiri@mellanox.com>