]> git.proxmox.com Git - mirror_iproute2.git/blob - man/man8/devlink-port.8
966faae69481a7b976ef6cf91edbf4540b9c95d6
[mirror_iproute2.git] / man / man8 / devlink-port.8
1 .TH DEVLINK\-PORT 8 "14 Mar 2016" "iproute2" "Linux"
2 .SH NAME
3 devlink-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] |
19 \fB\-n\fR[\fIno-nice-names\fR] }
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
42 .ti -8
43 .B devlink port health
44 .RI "{ " show " | " recover " | " diagnose " | " dump " | " set " }"
45
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
57 Format is:
58 .in +2
59 BUS_NAME/BUS_ADDRESS/PORT_INDEX
60
61 .TP
62 .BR type " { " eth " | " ib " | " auto " } "
63 set 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"
82 number of ports to split to.
83
84 .SS devlink port unsplit - unsplit previously split devlink port
85 Could 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.
96 If this argument is omitted all ports are listed.
97
98 .SS devlink port health - devlink health reporting and recovery
99 Is an alias for
100 .BR devlink-health (8).
101
102 .SH "EXAMPLES"
103 .PP
104 devlink port show
105 .RS 4
106 Shows the state of all devlink ports on the system.
107 .RE
108 .PP
109 devlink port show pci/0000:01:00.0/1
110 .RS 4
111 Shows the state of specified devlink port.
112 .RE
113 .PP
114 devlink port set pci/0000:01:00.0/1 type eth
115 .RS 4
116 Set type of specified devlink port to Ethernet.
117 .RE
118 .PP
119 devlink port split pci/0000:01:00.0/1 count 4
120 .RS 4
121 Split the specified devlink port into four ports.
122 .RE
123 .PP
124 devlink port unsplit pci/0000:01:00.0/1
125 .RS 4
126 Unplit the specified previously split devlink port.
127 .RE
128 .PP
129 devlink port health show
130 .RS 4
131 Shows status and configuration of all supported reporters registered on all devlink ports.
132 .RE
133 .PP
134 devlink port health show pci/0000:01:00.0/1 reporter tx
135 .RS 4
136 Shows status and configuration of tx reporter registered on pci/0000:01:00.0/1 devlink port.
137 .RE
138
139 .SH SEE ALSO
140 .BR devlink (8),
141 .BR devlink-dev (8),
142 .BR devlink-sb (8),
143 .BR devlink-monitor (8),
144 .BR devlink-health (8),
145 .br
146
147 .SH AUTHOR
148 Jiri Pirko <jiri@mellanox.com>