]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
fabrics: add option to override drivers queue depth also for connect-all command
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 11 May 2017 17:48:37 +0000 (19:48 +0200)
committerKeith Busch <keith.busch@intel.com>
Thu, 18 May 2017 14:22:18 +0000 (10:22 -0400)
Currently it is not possible to override the fabrics drivers default
queue depth with the nvme userspace utility's 'connect-all' command,
but only when using the 'connect' command.

Add an option to override the drivers default queue depth for NVMe
over fabrics with the 'connect-all' command as we did previouslt with the
'connect' command.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Documentation/nvme-connect-all.txt
fabrics.c

index b4b3e40c10612f6a7448b9d7dbcfcfc54c96b97b..03adac56f9aa5e336eaf889827f55fba9367ac23 100644 (file)
@@ -81,6 +81,11 @@ OPTIONS
        and dump it to a raw binary file. By default 'nvme connect-all' will
        dump the output to stdout.
 
+-Q <#>::
+--queue-size=<#>::
+       Overrides the default number of elements in the I/O queues created
+       by the driver.
+
 EXAMPLES
 --------
 * Connect to all records returned by the Discover Controller with IP4 address
index a826ecc6ade406183a08e1f168ba8611d20e5045..bbcca470c72a05149672fc6348725c4cf201f4d5 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -782,6 +782,7 @@ int discover(const char *desc, int argc, char **argv, bool connect)
                {"trsvcid",     's', "LIST", CFG_STRING, &cfg.trsvcid,     required_argument, "transport service id (e.g. IP port)" },
                {"host-traddr", 'w', "LIST", CFG_STRING, &cfg.host_traddr, required_argument, "host traddr (e.g. FC WWN's)" },
                {"hostnqn",     'q', "LIST", CFG_STRING, &cfg.hostnqn,     required_argument, "user-defined hostnqn (if default not used)" },
+               {"queue-size",  'Q', "LIST", CFG_STRING, &cfg.queue_size,  required_argument, "number of io queue elements to use (default 128)" },
                {"raw",         'r', "LIST", CFG_STRING, &cfg.raw,         required_argument, "raw output file" },
                {NULL},
        };