From: Daniel Wagner Date: Thu, 19 Jan 2023 07:58:15 +0000 (+0100) Subject: fabrics: Set discovery KATO also for current disc crtl X-Git-Tag: v2.3~19^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5d5b1255f74a472dcd40b2373debb4ebe57315c8;p=users%2Fsagi%2Fnvme-cli.git fabrics: Set discovery KATO also for current disc crtl 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 --- diff --git a/fabrics.c b/fabrics.c index 7df53a3d..f255e267 100644 --- 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;