]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: permit kato int argument for discovery controllers
authorMartin George <martinus.gpy@gmail.com>
Thu, 18 Feb 2021 09:46:42 +0000 (15:16 +0530)
committerKeith Busch <kbusch@kernel.org>
Thu, 18 Feb 2021 16:34:49 +0000 (01:34 +0900)
Given discovery controllers can now accept integer arguments
for kato, permit the same in build_options().

Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
fabrics.c

index a2d17196bc2c1e2beb0e49a851c1afec38e5252a..cdb0400719de8c6631fcb3e71311d6c25da3e0e3 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -899,9 +899,8 @@ static int build_options(char *argstr, int max_len, bool discover)
            (!discover &&
              add_int_argument(&argstr, &max_len, "queue_size",
                                cfg.queue_size, false)) ||
-           (!discover &&
-             add_int_argument(&argstr, &max_len, "keep_alive_tmo",
-                               cfg.keep_alive_tmo, false)) ||
+           add_int_argument(&argstr, &max_len, "keep_alive_tmo",
+                               cfg.keep_alive_tmo, false) ||
            add_int_argument(&argstr, &max_len, "reconnect_delay",
                                cfg.reconnect_delay, false) ||
            add_int_argument(&argstr, &max_len, "ctrl_loss_tmo",