File 0008-fabrics-permit-kato-int-argument-for-discovery-controllers.patch of Package nvme-cli.22025

From: Martin George <martinus.gpy@gmail.com>
Date: Thu, 18 Feb 2021 15:16:42 +0530
Subject: [PATCH] fabrics: permit kato int argument for discovery controllers
References: bsc#1182591
Git-commit: 0258f79369e13a11baa4e286d4c09ee8ddb5688e

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 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fabrics.c b/fabrics.c
index a2d17196bc2c..cdb0400719de 100644
--- 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",
-- 
2.29.2

openSUSE Build Service is sponsored by