]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: Set discovery KATO also for current disc crtl
authorDaniel Wagner <dwagner@suse.de>
Thu, 19 Jan 2023 07:58:15 +0000 (08:58 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 20 Jan 2023 07:47:49 +0000 (08:47 +0100)
The default KATO should also be set for the current discovery
controller (subtype 3) and not just for the discovery
controller (subtype 1).

Signed-off-by: Daniel Wagner <dwagner@suse.de>
fabrics.c

index 7df53a3d0e07c3cb261d7050c2f06a166ccd0085..f255e26776d2a4cd206a7c5aae2d784b6868790e 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -406,7 +406,8 @@ static int __discover(nvme_ctrl_t c, struct nvme_fabrics_config *defcfg,
                        if (strcmp(nvme_ctrl_get_transport(c), nvmf_trtype_str(e->trtype)))
                                continue;
 
-                       if (e->subtype == NVME_NQN_DISC)
+                       if (e->subtype == NVME_NQN_DISC ||
+                           e->subtype == NVME_NQN_CURR)
                                set_discovery_kato(defcfg);
 
                        errno = 0;