forked from ibm-s390-linux/smc-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smcss.8
407 lines (388 loc) · 7.89 KB
/
smcss.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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
.\" smcss.8
.\"
.\"
.\" Copyright IBM Corp. 2017, 2018
.\" Author(s): Ursula Braun <[email protected]>
.\" ----------------------------------------------------------------------
.\"
.TH SMCSS 8 "June 2018" "smc-tools" "Linux Programmer's Manual"
.SH NAME
smcss \- print information about the AF_SMC sockets and link groups
.SH SYNOPSIS
.B smcss
.RB [ \-\-debug | \-d ]
.RB [ \-\-smcd | \-D ]
.RB [ \-\-wide | \-W ]
.P
.B smcss
.RB { \-\-all | -a }
.RB [ \-\-debug | \-d ]
.RB [ \-\-smcd | \-D ]
.RB [ \-\-wide | \-W ]
.P
.B smcss
.RB [ \-\-debug | \-d ]
.RB [ \-\-smcr | \-R ]
.RB [ \-\-wide | \-W ]
.P
.B smcss
.RB { \-\-all | -a }
.RB [ \-\-debug | \-d ]
.RB [ \-\-smcr | \-R ]
.RB [ \-\-wide | \-W ]
.P
.B smcss
.RB { \-\-listening | \-l }
.RB [ \-\-wide | \-W ]
.P
.B smcss
.RB { \-\-version | \-v }
.P
.B smcss
.RB { \-\-help | \-h }
.SH DESCRIPTION
.B smcss
prints information about the Linux AF_SMC sockets and link groups.
The type of information printed is controlled by the first argument, as follows:
.TP
.BR (none)
.br
displays a list of connecting, closing, or connected SMC sockets with basic
information.
.TP
.BR "\-a, \-\-all"
displays all types of SMC sockets: listening, opening, closing, and connected.
.TP
.BR "\-l, \-\-listening"
shows listening sockets only. These are omitted by default.
.SH OPTIONS
.TP
.BR "\-d, \-\-debug"
displays additional debug information, such as shutdown state.
.TP
.BR "\-D, \-\-smcd
displays additional SMC-D specific information. Shows SMC-D sockets only.
.TP
.BR "\-h, \-\-help"
displays usage information.
.TP
.BR "\-R, \-\-smcr
displays additional SMC-R specific information. Shows SMC-R sockets only.
.TP
.BR "\-v, \-\-version"
displays program version.
.TP
.BR "\-W, \-\-wide"
do not truncate IP addresses.
.SH OUTPUT
.SS "State"
The state of the socket.
The state can be one of these values:
.TP
.I
INIT
The SMC socket is being initialized. It is not connected nor
listening yet.
.TP
.I
CLOSED
The SMC socket is closed. It is not connected nor listening
anymore.
.TP
.I
LISTEN
The SMC socket is a listening socket, waiting for incoming connection requests.
.TP
.I
ACTIVE
The SMC socket has an established connection.
In this state, the TCP connection is fully established,
rendezvous processing has been completed, and SMC peers
can exchange data via RDMA.
.TP
.I
PEERCLW1
No further data will be sent to the peer.
.TP
.I
PEERCLW2
No further data will be sent to or received from the peer.
.TP
.I
APPLCLW1
No further data will be received from the peer.
.TP
.I
APPLCLW2
No further data will be received from or sent to the peer.
.TP
.I
APPLFINCLW
The peer has closed the socket.
.TP
.I
PEERFINCLW
The socket is closed locally.
.TP
.I
PEERABORTW
The socket was abnormally closed locally.
.TP
.I
PROCESSABORT
The peer has closed the socket abnormally.
.SS "UID"
User ID of the SMC socket.
.SS "Inode"
Inode attribute of the socket.
.SS "Local Address"
Address and port number of the local end of the SMC socket.
The displayed address is truncated when it ends with '..'.
.BR "-W, --wide"
can be used to display addresses untruncated.
.SS "Peer Address"
Address and port number of the remote end of the socket.
Analogous to "Local Address".
.SS "Intf"
When the socket is explicitly bound with setsockopt option SO_BINDTODEVICE then
Intf shows the interface number of the Ethernet device to which the socket is bound.
.SS "Mode"
.TP
.I
SMCD
The SMC socket uses SMC-D for data exchange.
.TP
.I
SMCR
The SMC socket uses SMC-R for data exchange.
.TP
.I
TCP
The SMC socket uses the TCP protocol for data exchange, because an SMC connection
could not be established.
.TP
In case of an error during connection setup, respective error codes will be displayed in the format <local>/<remote>.
.HP
Linux error codes:
.TP 13
.I
0x01010000
Out of memory
.TP 13
.I
0x02010000
Timeout while waiting for confirm link message over RDMA device
.TP
.I
0x02020000
Timeout while waiting for RDMA device to be added
.TP
.I
0x03000000
Configuration error
.TP
.I
0x03010000
Peer does not support SMC
.TP
.I
0x03020000
Connection uses IPsec
.TP
.I
0x03030000
No SMC devices found (R and D)
.TP
.I
0x03030001
No ISM device for SMC-D found
.TP
.I
0x03030002
No RDMA device for SMC-R found
.TP
.I
0x03030003
Hardware has no ISMv2 support
.TP
.I
0x03030004
Peer sent no SMCv2 extension
.TP
.I
0x03030005
Peer sent no SMC-Dv2 extension
.TP
.I
0x03030006
Peer sent no ISMv2 SEID
.TP
.I
0x03030007
No SMC-Dv2 device found, but required
.TP
.I
0x03030008
Peer sent no UEID
.TP
.I
0x03040000
SMC modes mismatch (R or D)
.TP
.I
0x03050000
Peer has eyecatcher in RMBE
.TP
.I
0x03060000
Fastopen sockopt not supported
.TP
.I
0x03070000
IP prefix / subnet mismatch
.TP
.I
0x03080000
Error retrieving VLAN ID of IP device
.TP
.I
0x03090000
Error while registering VLAN ID on ISM device
.TP
.I
0x030a0000
No active SMC-R link in link group
.TP
.I
0x030b0000
SMC-R link from server not found
.TP
.I
0x030c0000
SMC version mismatch
.TP
.I
.I
0x030d0000
SMC-D connection limit reached
.TP
.I
.TP
.I
0x030e0000
SMC-Rv2 connection found no route to peer
.TP
.I
0x030f0000
SMC-Rv2 connection mismatch direct/indirect with peer
0x04000000
Synchronization error
.TP
.I
0x05000000
Peer declined during handshake
.TP
.I
0x09990000
Internal error
.TP
.I
0x09990001
rtoken handling failed
.TP
.I
0x09990002
RDMA link failed
.TP
.I
0x09990003
RMB registration failed
.SS "ShutD"
.TP
.I
<->
The SMC socket has not been shut down.
.TP
.I
R->
The SMC socket is shut down one-way and cannot receive data.
.TP
.I
<-W
The SMC socket is shut down one-way and cannot send data.
.TP
.I
R-W
The SMC socket is shut down in both ways and cannot receive or send data.
.SS "Token"
Unique ID of the SMC socket connection.
.SS "Sndbuf"
Size of the to-be-sent window of the SMC socket connection.
.SS "Rcvbuf"
Size of the receiving window of the SMC socket connection (filled by peer).
.SS "Peerbuf"
Size of the peer receiving window of the SMC socket connection (to fill
during RDMA-transfer).
.SS "rxprod-Cursor"
Describes the current cursor location of the "Rcvbuf" for data to be received
from the peer.
.SS "rxcons-Cursor"
Describes the current cursor location of the "Peerbuf" for data sent to peer
and confirmed by the peer.
.SS "rxFlags"
SMC socket connection flags set by and received from the peer.
.SS "txprod-Cursor"
Describes the current cursor location of the "Peerbuf" for data sent to peer.
.SS "txcons-Cursor"
Describes the current cursor location of the "Rcvbuf" for data received from
the peer and confirmed to the peer.
.SS "txFlags"
SMC socket connection flags set locally and sent to the peer.
.SS "txprep-Cursor"
Describes the current cursor location of the "Sndbuf" for data to be sent.
The data is to be moved to the "Peerbuf".
.SS "txsent-Cursor"
Describes the current cursor location of the "Sndbuf" for data sent.
The data was moved to the "Peerbuf".
.SS "txfin-Cursor"
Describes the current cursor location of the "Sndbuf" for data sent and
send completion confirmed.
The data was moved to the "Peerbuf" and completion was confirmed.
.SS "Role"
.TP
.I
CLNT
The link group of the SMC socket is used for client connections.
.TP
.I
SERV
The link group of the SMC socket is used for server connections.
.SS "IB-Device"
Name of the RoCE device used by the link group to which the SMC socket belongs.
.SS "Port"
Port of the RoCE device used by the link group to which the SMC socket belongs.
.SS "Linkid"
Unique link ID of the link within the link group to which the SMC socket belongs.
.SS "GID"
Gid of the RoCE port used by the link group to which the SMC socket belongs.
.SS "Peer-GID"
Gid of the Foreign RoCE port used by the link group to which the SMC socket belongs.
.SS "VLAN"
tbd.
.SH RETURN CODES
Successful
.IR smcss
commands return 0 and display the
requested socket state table or link group information.
If an error occurs,
.IR smcss
writes a message to stderr and completes with a return code other than 0.
.P
.SH SEE ALSO
.BR af_smc (7),
.BR smc_chk (8)
.BR smc_rnics (8),
.BR smc_run (8),
.BR smc_pnet (8),
.BR smcd (8),
.BR smcr (8)