forked from ibm-s390-linux/smc-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smcd-linkgroup.8
222 lines (200 loc) · 4.41 KB
/
smcd-linkgroup.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
.\" smcd-linkgroup.8
.\"
.\"
.\" Copyright IBM Corp. 2020
.\" Author(s): Guvenc Gulce <guvenc@linux.ibm.com>
.\" ----------------------------------------------------------------------
.\"
.TH SMCD-LINKGROUP 8 "June 2020" "smc-tools" "Linux Programmer's Manual"
.SH NAME
smcd-linkgroup \- Print information about SMC-D link groups
smcr-linkgroup \- Print information about SMC-R link groups and links
.SH "SYNOPSIS"
.sp
.ad l
.in +8
.ti -8
.B smcd
.RI "[ " OPTIONS " ]"
.B linkgroup
.RI " { " COMMAND " | "
.BR help " }"
.sp
.ti -8
.BR "smcd linkgroup" " [ " show " ] ["
.B "all "
.RI "| " LG-ID "
.RI ]
.ti -8
.B smcr
.RI "[ " OPTIONS " ]"
.B linkgroup
.RI " { " COMMAND " | "
.BR help " }"
.sp
.ti -8
.BR "smcr linkgroup" " { " show " | " link-show " } ["
.B "all "
.RI "| " LG-ID " ] [ "
.B netdev
.IR NETDEV " ] [ "
.B ibdev
.IR IBDEV " ]
.SH "DESCRIPTION"
The
.B smcd linkgroup
command displays SMC-D link groups and their properties.
The
.B smcr linkgroup
command displays SMC-R link groups and links with their properties.
.SS smcd,smcr linkgroup show
inspect the link group properties
.TP
.B all (default)
Show all link groups.
.TP
.I LG-ID
Show the link group with the ID
.I LG-ID
.TP
.BI netdev " NETDEV"
.B SMC-R
only: list the link groups for the specified network device.
.TP
.BI ibdev " IBDEV"
.B SMC-R
only: list the link groups for the specified RoCE device.
.SS smcr linkgroup link-show
SMC-R only: Inspect the link properties
.TP
.B all (default)
List all links of all link groups.
.TP
.I LG-ID
Show links of the link group with the id.
.I LG-ID
.TP
.BI netdev " NETDEV"
List the links of the link groups for the specified network device.
.TP
.BI ibdev " IBDEV"
List the links of the link groups for the specified RoCE device.
.SH OUTPUT
.SS "LG-ID"
ID of the link group.
.SS "LG-Role"
Role of the link group.
.TP
.I
SERV
The link group has a SERVER role.
.TP
.I
CLNT
The link group has a CLIENT role.
.SS "LG-Type"
Type of the link group.
.TP
.I
NONE
The link group has the initial type.
.TP
.I
SINGLE
The link group has only a single link, i.e.
the local and the peer system can offer one device port only for this link group,
which means a link outage on either side cannot be recovered.
.TP
.I
SYM
The link group has two symmetric links, i.e.
the local and the peer system can offer two device ports for this link group,
which means a link outage on either side can be recovered.
.TP
.I
ASYMP
The link group has asymmetric links, i.e.
the peer system can offer one device port only for this link group,
which means a link outage on the peer side cannot be recovered.
.TP
.I
ASYML
The link group has asymmetric links, i.e.
the local system can offer one device port only for this link group,
which means a link outage on the local side cannot be recovered.
.SS "VLAN"
The VLAN to which the link group belongs.
.SS "#Conns"
Number of connections(sockets) running on the link or link group.
.SS "PNET-ID"
PNET ID of the link group. Asterisk "*" means PNET ID is set by the user.
.SS "Net-Dev"
Network device name corresponding to the link.
.SS "Link-State"
The state of the link.
.TP
.I
LINK_UNUSED
The link is not in use and in initial state.
.TP
.I
LINK_INACTIVE
The link is inactive and will go away.
.TP
.I
LINK_ACTIVATING
The link is being activated with the peer.
.TP
.I
LINK_ACTIVE
The link is active and operates on an established link with the peer.
Data is being exchanged via RDMA.
.SS "Link-UID"
Unique identifier of the link. This identifier consists of link group id and
link id.
.SS "Peer-UID"
Unique identifier of the link on the peer side. This identifier consists of
link group id and link id.
.SS "IB-Dev"
Name of the RoCE device used by the link.
.SS "IB-P"
Port of the RoCE device used by the link.
.SS "Local-GID"
GID of the RoCE port used by the link.
.SS "Peer-GID"
GID of the peer RoCE port used by the link.
.SH "EXAMPLES"
.HP 2
1. Show all SMC-D link groups:
.br
\fB# smcd linkgroup show all\fP
.br
.HP 2
2. Show all SMC-D link groups with link group id 50:
.br
\fB# smcd linkgroup show 50\fP
.br
.HP 2
3. Show all SMC-R links:
.br
\fB# smcr linkgroup link-show all\fP
.br
.HP 2
4. Show all SMC-R links with link group ID 40:
.br
\fB# smcr linkgroup link-show 40\fP
.br
.HP 2
5. Show all SMC-R links on RoCE device "mlx4_0":
.br
\fB# smcr linkgroup link-show ibdev mlx4_0\fP
.br
.HP 2
6. Show all SMC-R links on network device "eth0":
.br
\fB# smcr linkgroup link-show netdev eth0\fP
.br
.SH SEE ALSO
.br
.BR smcd (8),
.BR smcr (8)