From: Johannes Thumshirn Date: Wed, 25 Apr 2018 17:49:23 +0000 (-0600) Subject: fabrics: add option to supply keep-alive-timeout for connect-all X-Git-Tag: v1.6~52 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7099227b07a86f152fa62b9a96f77a2f3e22f59f;p=users%2Fsagi%2Fnvme-cli.git fabrics: add option to supply keep-alive-timeout for connect-all Currently we can't supply a keep-alive-timeout when doing a nvme connect-all, but we can supply it when doing nvme connect. Bring connect-all in line with connect. Signed-off-by: Johannes Thumshirn Signed-off-by: Keith Busch --- diff --git a/Documentation/nvme-connect-all.txt b/Documentation/nvme-connect-all.txt index 03adac56..217268f9 100644 --- a/Documentation/nvme-connect-all.txt +++ b/Documentation/nvme-connect-all.txt @@ -14,6 +14,7 @@ SYNOPSIS [--trsvcid= | -s ] [--host-traddr= | -w ] [--hostnqn= | -q ] + [--keep-alive-tmo=<#> | -k <#>] [--raw= | -r ] DESCRIPTION @@ -86,6 +87,10 @@ OPTIONS Overrides the default number of elements in the I/O queues created by the driver. +-k <#>:: +--keep-alive-tmo=<#>:: + Overrides the default keep alive timeout (in seconds). + EXAMPLES -------- * Connect to all records returned by the Discover Controller with IP4 address diff --git a/fabrics.c b/fabrics.c index 62bd3be1..7e9d56c6 100644 --- a/fabrics.c +++ b/fabrics.c @@ -821,6 +821,7 @@ int discover(const char *desc, int argc, char **argv, bool connect) {"queue-size", 'Q', "LIST", CFG_STRING, &cfg.queue_size, required_argument, "number of io queue elements to use (default 128)" }, {"nr-io-queues",'i', "LIST", CFG_STRING, &cfg.nr_io_queues,required_argument, "number of io queues to use (default is core count)" }, {"raw", 'r', "LIST", CFG_STRING, &cfg.raw, required_argument, "raw output file" }, + {"keep-alive-tmo", 'k', "LIST", CFG_STRING, &cfg.keep_alive_tmo, required_argument, "keep alive timeout period in seconds" }, {NULL}, };