summaryrefslogtreecommitdiffstats
path: root/doc/standard-conf.xml
blob: 50d4fe57adceb951b2652589f4ecd7d2f5985382 (plain)
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
<?xml version="1.0"?>
<!DOCTYPE refsection PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
          "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">

<!--
    SPDX-License-Identifier: Apache-2.0
    Copyright (c) 2021, Dell Inc. or its subsidiaries.  All rights reserved.
-->

<root>

    <variablelist>
        <varlistentry id='tron'>
            <term><varname>tron=</varname></term>

            <listitem id='tron-text'>
                <para>
                    Trace ON. Takes a boolean argument. If <parameter>true</parameter>,
                    enables full code tracing. The trace will be displayed in
                    the system log such as systemd's journal. Defaults to
                    <parameter>false</parameter>.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='hdr-digest'>
            <term><varname>hdr-digest=</varname></term>

            <listitem id='hdr-digest-text'>
                <para>
                    Enable Protocol Data Unit (PDU) Header Digest. Takes a
                    boolean argument. NVMe/TCP facilitates an optional PDU
                    Header digest. Digests are calculated using the CRC32C
                    algorithm. If <parameter>true</parameter>, Header Digests
                    are inserted in PDUs and checked for errors. Defaults to
                    <parameter>false</parameter>.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='data-digest'>
            <term><varname>data-digest=</varname></term>

            <listitem id='data-digest-text'>
                <para>
                    Enable Protocol Data Unit (PDU) Data Digest. Takes a
                    boolean argument. NVMe/TCP facilitates an optional PDU
                    Data digest. Digests are calculated using the CRC32C
                    algorithm. If <parameter>true</parameter>, Data Digests
                    are inserted in PDUs and checked for errors. Defaults to
                    <parameter>false</parameter>.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='kato'>
            <term><varname>kato=</varname></term>

            <listitem id='kato-text'>
                <para>
                    Keep Alive Timeout (KATO) in seconds. Takes an unsigned
                    integer. This field specifies the timeout value for the Keep
                    Alive feature in seconds. Defaults to 30 seconds for
                    Discovery Controller connections and 120 seconds for I/O
                    Controller connections.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='ip-family'>
            <term><varname>ip-family=</varname></term>

            <listitem id='ip-family-text'>
                <para>
                    Takes a string argument. With this you can specify
                    whether IPv4, IPv6, or both are supported when
                    connecting to a Controller. Connections will not be
                    attempted to IP addresses (whether discovered or
                    manually configured with <varname>controller=</varname>)
                    disabled by this option. If an invalid value
                    is entered, then the default (see below) will apply.
                </para>

                <para>
                    Choices are <parameter>ipv4</parameter>, <parameter>ipv6</parameter>, or <parameter>ipv4+ipv6</parameter>.
                </para>

                <para>
                    Defaults to <parameter>ipv4+ipv6</parameter>.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='queue-size'>
            <term><varname>queue-size=</varname></term>

            <listitem id='queue-size-text'>
                <para>
                    Takes a value in the range 16...1024.
                </para>

                <para>
                    Overrides the default number of elements in the I/O queues
                    created by the driver. This option will be ignored for
                    discovery, but will be passed on to the subsequent connect
                    call.
                </para>

                <para>Note: This parameter is identical to that provided by nvme-cli.</para>

                <para>
                    Defaults to <parameter>128</parameter>.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='reconnect-delay'>
            <term><varname>reconnect-delay=</varname></term>

            <listitem id='reconnect-delay-text'>
                <para>
                    Takes a value in the range 1 to N seconds.
                </para>

                <para>
                    Overrides the default delay before reconnect is attempted
                    after a connect loss.
                </para>

                <para>Note: This parameter is identical to that provided by nvme-cli.</para>

                <para>
                    Defaults to <parameter>10</parameter>. Retry to connect every 10 seconds.
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='ctrl-loss-tmo'>
            <term><varname>ctrl-loss-tmo=</varname></term>

            <listitem id='ctrl-loss-tmo-text'>
                <para>
                    Takes a value in the range -1, 0, ..., N seconds. -1 means
                    retry forever. 0 means do not retry.
                </para>

                <para>
                    Overrides the default controller loss timeout period (in seconds).
                </para>

                <para>Note: This parameter is identical to that provided by nvme-cli.</para>

                <para>
                    Defaults to <parameter>600</parameter> seconds (10 minutes).
                </para>
            </listitem>
        </varlistentry>

        <varlistentry id='disable-sqflow'>
            <term><varname>disable-sqflow=</varname></term>

            <listitem id='disable-sqflow-text'>
                <para>
                    Takes a boolean argument. Disables SQ flow control to omit
                    head doorbell update for submission queues when sending nvme
                    completions.
                </para>

                <para>Note: This parameter is identical to that provided by nvme-cli.</para>

                <para>
                    Defaults to <parameter>false</parameter>.
                </para>
            </listitem>
        </varlistentry>
    </variablelist>

    <refsect2 id='controller'>
        <title>[Controllers] section</title>

        <para>The following options are available in the
            <literal>[Controllers]</literal> section:</para>

        <varlistentry>
            <term><varname>controller=</varname></term>

            <listitem id='controller-text'>
                <para>
                    Controllers are specified with the <varname>controller</varname>
                    option. This option may be specified more than once to specify
                    more than one controller. The format is one line per Controller
                    composed of a series of fields separated by semi-colons as follows:
                </para>

                <programlisting>controller=transport=[trtype];traddr=[traddr];trsvcid=[trsvcid];host-traddr=[traddr],host-iface=[iface];nqn=[nqn]
                </programlisting>

                <refsect3>
                    <title>Fields</title>
                    <variablelist>
                        <varlistentry id='transport'>
                            <term><varname>transport=</varname></term>

                            <listitem id='transport-text'>
                                <para>
                                    This is a mandatory field that specifies the
                                    network fabric being used for a
                                    NVMe-over-Fabrics network. Current
                                    <parameter>trtype</parameter> values understood
                                    are:
                                </para>

                                <table id='transport-types'>
                                    <title>Transport type</title>
                                    <tgroup cols="2">
                                        <thead>
                                            <row>
                                                <entry>trtype</entry>
                                                <entry>Definition</entry>
                                            </row>
                                        </thead>

                                        <tbody>
                                            <row>
                                                <entry>rdma</entry>
                                                <entry>
                                                    The network fabric is an rdma network (RoCE, iWARP, Infiniband, basic rdma, etc)
                                                </entry>
                                            </row>

                                            <row>
                                                <entry>fc</entry>
                                                <entry>
                                                    The network fabric is a Fibre Channel network.
                                                </entry>
                                            </row>

                                            <row>
                                                <entry>tcp</entry>
                                                <entry>
                                                    The network fabric is a TCP/IP network.
                                                </entry>
                                            </row>

                                            <row>
                                                <entry>loop</entry>
                                                <entry>
                                                    Connect to a NVMe over Fabrics target on the local host
                                                </entry>
                                            </row>
                                        </tbody>
                                    </tgroup>
                                </table>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='tradd'>
                            <term>
                                <varname>traddr=</varname>
                            </term>

                            <listitem>
                                <para>
                                    This is a mandatory field that specifies the
                                    network address of the Controller. For
                                    transports using IP addressing (e.g. rdma)
                                    this should be an IP-based address (ex.
                                    IPv4, IPv6). It could also be a resolvable
                                    host name (e.g. localhost).
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='trsvcid'>
                            <term>
                                <varname>trsvcid=</varname>
                            </term>

                            <listitem>
                                <para>
                                    This is an optional field that specifies the
                                    transport service id. For transports using
                                    IP addressing (e.g. rdma, tcp) this field is
                                    the port number.
                                </para>

                                <para>
                                    Depending on the transport type, this field
                                    will default to either 8009 or 4420 as
                                    follows.
                                </para>

                                <para>
                                    UDP port 4420 and TCP port 4420 have been
                                    assigned by IANA for use by NVMe over
                                    Fabrics. NVMe/RoCEv2 controllers use UDP
                                    port 4420 by default. NVMe/iWARP controllers
                                    use TCP port 4420 by default.
                                </para>

                                <para>
                                    TCP port 4420 has been assigned for use by
                                    NVMe over Fabrics and TCP port 8009 has been
                                    assigned by IANA for use by NVMe over
                                    Fabrics discovery. TCP port 8009 is the
                                    default TCP port for NVMe/TCP discovery
                                    controllers. There is no default TCP port
                                    for NVMe/TCP I/O controllers, the Transport
                                    Service Identifier (TRSVCID) field in the
                                    Discovery Log Entry indicates the TCP port
                                    to use.
                                </para>

                                <para>
                                    The TCP ports that may be used for NVMe/TCP
                                    I/O controllers include TCP port 4420, and
                                    the Dynamic and/or Private TCP ports (i.e.,
                                    ports in the TCP port number range from
                                    49152 to 65535). NVMe/TCP I/O controllers
                                    should not use TCP port 8009. TCP port 4420
                                    shall not be used for both NVMe/iWARP and
                                    NVMe/TCP at the same IP address on the same
                                    network.
                                </para>

                                <para>
                                    Ref:
                                    <ulink
                                        url="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=nvme">
                                        IANA Service names port numbers
                                    </ulink>
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='nqn'>
                            <term><varname>nqn=</varname></term>
                            <listitem>
                                <para>
                                    This field specifies the Controller's NVMe
                                    Qualified Name.
                                </para>
                                <para>
                                    This field is mandatory for I/O Controllers, but is optional for
                                    Discovery Controllers (DC). For the latter, the NQN will default
                                    to the well-known DC NQN: <literal>nqn.2014-08.org.nvmexpress.discovery</literal>
                                    if left undefined.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='host-traddr'>
                            <term><varname>host-traddr=</varname></term>
                            <listitem>
                                <para>
                                    This is an optional field that specifies the
                                    network address used on the host to connect
                                    to the Controller. For TCP, this sets the
                                    source address on the socket.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='host-iface'>
                            <term><varname>host-iface=</varname></term>
                            <listitem>
                                <para>
                                    This is an optional field that specifies the
                                    network interface used on the host to
                                    connect to the Controller (e.g. IP eth1,
                                    enp2s0, enx78e7d1ea46da). This forces the
                                    connection to be made on a specific
                                    interface instead of letting the system
                                    decide.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='dhchap-ctrl-secret'>
                            <term><varname>dhchap-ctrl-secret=</varname></term>
                            <listitem>
                                <para>
                                    This is an optional field that specifies the
                                    NVMe In-band authentication controller secret
                                    (i.e. key) for bi-directional authentication;
                                    needs to be in ASCII format as specified in
                                    NVMe 2.0 section 8.13.5.8 'Secret representation'.
                                    Bi-directional authentication will be attempted
                                    when present.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='hdr-digest-override'>
                            <term><varname>hdr-digest=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='data-digest-override'>
                            <term><varname>data-digest=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='nr-io-queues-override'>
                            <term><varname>nr-io-queues=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='nr-write-queues-override'>
                            <term><varname>nr-write-queues=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='nr-poll-queues-override'>
                            <term><varname>nr-poll-queues=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='queue-size-override'>
                            <term><varname>queue-size=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='kato-override'>
                            <term><varname>kato=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='reconnect-delay-override'>
                            <term><varname>reconnect-delay=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='ctrl-loss-tmo-override'>
                            <term><varname>ctrl-loss-tmo=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>

                        <varlistentry id='disable-sqflow-override'>
                            <term><varname>disable-sqflow=</varname></term>
                            <listitem>
                                <para>
                                    See definition in [Global] section. This is
                                    an optional field used to override the value
                                    specified in the [Global] section.
                                </para>
                            </listitem>
                        </varlistentry>
                    </variablelist>
                </refsect3>

                <para>
                    Examples:
                    <programlisting>controller = transport=tcp;traddr=localhost;trsvcid=8009
controller = transport=tcp;traddr=2001:db8::370:7334;host-iface=enp0s8
controller = transport=fc;traddr=nn-0x204600a098cbcac6:pn-0x204700a098cbcac6
                    </programlisting>
                </para>
            </listitem>
        </varlistentry>

        <varlistentry>
            <term><varname>exclude=</varname></term>

            <listitem id='exclude-text'>
                <para>
                    Controllers that should be excluded can be specified with the
                    <varname>exclude=</varname> option. Using mDNS to
                    automatically discover and connect to controllers, can result
                    in unintentional connections being made. This keyword allows
                    configuring the controllers that should not be connected to.
                </para>

                <para>
                    The syntax is the same as for "controller", except that only
                    <parameter>transport</parameter>, <parameter>traddr</parameter>,
                    <parameter>trsvcid</parameter>, <parameter>nqn</parameter>, and
                    <parameter>host-iface</parameter> apply. Multiple
                    <varname>exclude=</varname> keywords may appear in the config
                    file to specify more than 1 excluded controller.
                </para>

                <para>
                    Note 1: A minimal match approach is used to eliminate unwanted
                    controllers. That is, you do not need to specify all the
                    parameters to identify a controller. Just specifying the
                    <parameter>host-iface</parameter>, for example, can be used to
                    exclude all controllers on an interface.
                </para>

                <para>
                    Note 2: <varname>exclude=</varname> takes precedence over
                    <varname>controller</varname>. A controller specified by the
                    <varname>controller</varname> keyword, can be eliminated by
                    the <varname>exclude=</varname> keyword.
                </para>

                <para>
                    Examples:
                    <programlisting>exclude = transport=tcp;traddr=fe80::2c6e:dee7:857:26bb # Eliminate a specific address
exclude = host-iface=enp0s8                             # Eliminate everything on this interface
                    </programlisting>
                </para>
            </listitem>
        </varlistentry>

    </refsect2>
</root>