]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/devlink-port.8
Merge branch 'main' into next
[mirror_iproute2.git] / man / man8 / devlink-port.8
CommitLineData
a3c4b484
JP
1.TH DEVLINK\-PORT 8 "14 Mar 2016" "iproute2" "Linux"
2.SH NAME
3devlink-port \- devlink port configuration
4.SH SYNOPSIS
5.sp
6.ad l
7.in +8
8.ti -8
9.B devlink
10.RI "[ " OPTIONS " ]"
11.B port
12.RI " { " COMMAND " | "
13.BR help " }"
14.sp
15
16.ti -8
17.IR OPTIONS " := { "
18\fB\-V\fR[\fIersion\fR] |
43f35be4 19\fB\-n\fR[\fIno-nice-names\fR] }
a3c4b484
JP
20
21.ti -8
22.BR "devlink port set "
23.IR DEV/PORT_INDEX
24.RI "[ "
25.BR type " { " eth " | " ib " | " auto " }"
26.RI "]"
27
28.ti -8
29.BR "devlink port split "
30.IR DEV/PORT_INDEX
31.BR count
32.IR COUNT
33
34.ti -8
35.BR "devlink port unsplit "
36.IR DEV/PORT_INDEX
37
38.ti -8
39.B devlink port show
40.RI "[ " DEV/PORT_INDEX " ]"
41
1fe8c44b
VT
42.ti -8
43.B devlink port health
44.RI "{ " show " | " recover " | " diagnose " | " dump " | " set " }"
45
a3c4b484
JP
46.ti -8
47.B devlink port help
48
49.SH "DESCRIPTION"
50.SS devlink port set - change devlink port attributes
51
52.PP
53.B "DEV/PORT_INDEX"
54- specifies the devlink port to operate on.
55
56.in +4
57Format is:
58.in +2
59BUS_NAME/BUS_ADDRESS/PORT_INDEX
60
61.TP
62.BR type " { " eth " | " ib " | " auto " } "
63set port type
64
65.I eth
66- Ethernet
67
68.I ib
69- Infiniband
70
71.I auto
72- autoselect
73
74.SS devlink port split - split devlink port into more
75
76.PP
77.B "DEV/PORT_INDEX"
78- specifies the devlink port to operate on.
79
80.TP
81.BI count " COUNT"
82number of ports to split to.
83
84.SS devlink port unsplit - unsplit previously split devlink port
85Could be performed on any split port of the same split group.
86
87.PP
88.B "DEV/PORT_INDEX"
89- specifies the devlink port to operate on.
90
91.SS devlink port show - display devlink port attributes
92
93.PP
94.I "DEV/PORT_INDEX"
95- specifies the devlink port to show.
96If this argument is omitted all ports are listed.
97
1fe8c44b
VT
98.SS devlink port health - devlink health reporting and recovery
99Is an alias for
100.BR devlink-health (8).
101
a3c4b484
JP
102.SH "EXAMPLES"
103.PP
104devlink port show
105.RS 4
106Shows the state of all devlink ports on the system.
107.RE
108.PP
109devlink port show pci/0000:01:00.0/1
110.RS 4
111Shows the state of specified devlink port.
112.RE
113.PP
114devlink port set pci/0000:01:00.0/1 type eth
115.RS 4
116Set type of specified devlink port to Ethernet.
117.RE
118.PP
119devlink port split pci/0000:01:00.0/1 count 4
120.RS 4
121Split the specified devlink port into four ports.
122.RE
123.PP
124devlink port unsplit pci/0000:01:00.0/1
125.RS 4
126Unplit the specified previously split devlink port.
9ab56784 127.RE
1fe8c44b
VT
128.PP
129devlink port health show
130.RS 4
131Shows status and configuration of all supported reporters registered on all devlink ports.
132.RE
133.PP
134devlink port health show pci/0000:01:00.0/1 reporter tx
135.RS 4
136Shows status and configuration of tx reporter registered on pci/0000:01:00.0/1 devlink port.
137.RE
a3c4b484
JP
138
139.SH SEE ALSO
140.BR devlink (8),
141.BR devlink-dev (8),
4bf138d6 142.BR devlink-sb (8),
a3c4b484 143.BR devlink-monitor (8),
1fe8c44b 144.BR devlink-health (8),
a3c4b484
JP
145.br
146
147.SH AUTHOR
148Jiri Pirko <jiri@mellanox.com>