]> git.proxmox.com Git - mirror_iproute2.git/blob - man/man8/devlink-port.8
v5.8.0
[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 help
44
45 .SH "DESCRIPTION"
46 .SS devlink port set - change devlink port attributes
47
48 .PP
49 .B "DEV/PORT_INDEX"
50 - specifies the devlink port to operate on.
51
52 .in +4
53 Format is:
54 .in +2
55 BUS_NAME/BUS_ADDRESS/PORT_INDEX
56
57 .TP
58 .BR type " { " eth " | " ib " | " auto " } "
59 set port type
60
61 .I eth
62 - Ethernet
63
64 .I ib
65 - Infiniband
66
67 .I auto
68 - autoselect
69
70 .SS devlink port split - split devlink port into more
71
72 .PP
73 .B "DEV/PORT_INDEX"
74 - specifies the devlink port to operate on.
75
76 .TP
77 .BI count " COUNT"
78 number of ports to split to.
79
80 .SS devlink port unsplit - unsplit previously split devlink port
81 Could be performed on any split port of the same split group.
82
83 .PP
84 .B "DEV/PORT_INDEX"
85 - specifies the devlink port to operate on.
86
87 .SS devlink port show - display devlink port attributes
88
89 .PP
90 .I "DEV/PORT_INDEX"
91 - specifies the devlink port to show.
92 If this argument is omitted all ports are listed.
93
94 .SH "EXAMPLES"
95 .PP
96 devlink port show
97 .RS 4
98 Shows the state of all devlink ports on the system.
99 .RE
100 .PP
101 devlink port show pci/0000:01:00.0/1
102 .RS 4
103 Shows the state of specified devlink port.
104 .RE
105 .PP
106 devlink port set pci/0000:01:00.0/1 type eth
107 .RS 4
108 Set type of specified devlink port to Ethernet.
109 .RE
110 .PP
111 devlink port split pci/0000:01:00.0/1 count 4
112 .RS 4
113 Split the specified devlink port into four ports.
114 .RE
115 .PP
116 devlink port unsplit pci/0000:01:00.0/1
117 .RS 4
118 Unplit the specified previously split devlink port.
119 .RE
120
121 .SH SEE ALSO
122 .BR devlink (8),
123 .BR devlink-dev (8),
124 .BR devlink-sb (8),
125 .BR devlink-monitor (8),
126 .br
127
128 .SH AUTHOR
129 Jiri Pirko <jiri@mellanox.com>