]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-fabrics: enable option 'concat'
authorHannes Reinecke <hare@suse.de>
Tue, 23 Jan 2024 09:58:14 +0000 (10:58 +0100)
committerDaniel Wagner <wagi@monom.org>
Tue, 23 Jan 2024 13:50:16 +0000 (14:50 +0100)
Enable the option 'concat' to start secure concatenation on TCP
connections.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Documentation/nvme-connect-all.txt
Documentation/nvme-connect.txt
Documentation/nvme-discover.txt
fabrics.c

index faa2cf89273b0b669aa72e020927ac47cd698f58..6e01e5926b8634ae28a72e7a690e50802c0d530b 100644 (file)
@@ -27,7 +27,7 @@ SYNOPSIS
                        [--nr-poll-queues=<#> | -P <#>]
                        [--queue-size=<#> | -Q <#>] [--keyring=<#>]
                        [--tls_key=<#>] [--hdr-digest | -g] [--data-digest | -G]
-                       [--persistent | -p] [--tls] [--quiet | -S]
+                       [--persistent | -p] [--tls] [--concat] [--quiet | -S]
                        [--dump-config | -O] [--nbft] [--no-nbft]
                        [--nbft-path=<STR>] [--context=<STR>]
                        [--output-format=<fmt> | -o <fmt>] [--verbose | -v]
@@ -186,6 +186,9 @@ OPTIONS
 --tls::
        Enable TLS encryption (TCP).
 
+--concat::
+       Enable secure concatenation (TCP).
+
 -S::
 --quiet::
        Suppress error messages.
index af3e7d3748f2c74442160a815b4cc07cdd127ec9..2cdc229218ffb16c74e147d0e773d8c1b82bee62 100644 (file)
@@ -29,7 +29,7 @@ SYNOPSIS
                        [--keyring=<#>] [--tls_key=<#>]
                        [--duplicate-connect | -D] [--disable-sqflow | -d]
                        [--hdr-digest | -g] [--data-digest | -G] [--tls]
-                       [--dump-config | -O] [--application=<id>]
+                       [--concat] [--dump-config | -O] [--application=<id>]
                        [--output-format=<fmt> | -o <fmt>] [--verbose | -v]
 
 DESCRIPTION
@@ -176,6 +176,9 @@ OPTIONS
 --tls::
        Enable TLS encryption (TCP).
 
+--concat::
+       Enable secure concatenation (TCP).
+
 -O::
 --dump-config::
        Print out resulting JSON configuration file to stdout.
index 32f10bce420a344508914161f4c4f8936324b709..943a8702345acc14b69ef178955f018fe48d73c0 100644 (file)
@@ -27,7 +27,7 @@ SYNOPSIS
                        [--nr-poll-queues=<#> | -P <#>]
                        [--queue-size=<#> | -Q <#>] [--keyring=<#>]
                        [--tls_key=<#>] [--hdr-digest | -g] [--data-digest | -G]
-                       [--persistent | -p] [--quiet | -S] [--tls]
+                       [--persistent | -p] [--quiet | -S] [--tls] [--concat]
                        [--dump-config | -O] [--output-format=<fmt> | -o <fmt>]
                        [--force] [--nbft] [--no-nbft] [--nbft-path=<STR>]
                        [--context=<STR>]
@@ -206,6 +206,9 @@ OPTIONS
 --tls::
        Enable TLS encryption (TCP).
 
+--concat::
+       Enable secure concatenation (TCP).
+
 -S::
 --quiet::
        Suppress already connected errors.
index dcae9aead9378616b4f5ff3c0ba1e6003718ca9d..1a53b232da236f84bb1227408854061d6c3bf7dd 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -84,6 +84,7 @@ static const char *nvmf_disable_sqflow        = "disable controller sq flow control (de
 static const char *nvmf_hdr_digest     = "enable transport protocol header digest (TCP transport)";
 static const char *nvmf_data_digest    = "enable transport protocol data digest (TCP transport)";
 static const char *nvmf_tls            = "enable TLS";
+static const char *nvmf_concat         = "enable secure concatenation";
 static const char *nvmf_config_file    = "Use specified JSON configuration file or 'none' to disable";
 static const char *nvmf_context                = "execution context identification string";
 
@@ -113,6 +114,7 @@ static const char *nvmf_context             = "execution context identification string";
                OPT_FLAG("hdr-digest",        'g', &c.hdr_digest,         nvmf_hdr_digest),      \
                OPT_FLAG("data-digest",       'G', &c.data_digest,        nvmf_data_digest),     \
                OPT_FLAG("tls",                 0, &c.tls,                nvmf_tls),             \
+               OPT_FLAG("concat",              0, &c.concat,             nvmf_concat),          \
                __VA_ARGS__,                                                                     \
                OPT_END()                                                                        \
        }