]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: ensure zero kato for non-persistent controllers
authorDaniel Wagner <dwagner@suse.de>
Fri, 25 Feb 2022 12:57:05 +0000 (13:57 +0100)
committerDaniel Wagner <dwagner@suse.de>
Tue, 1 Mar 2022 07:58:40 +0000 (08:58 +0100)
commit37f75d461326102144a835d5057085b37aef9ef3
tree80de85d1ac10dd853ee4f3c4096cbd42ae1f0422
parent59263bbcd3e4f5eaffe7d200c4cad2a361008e48
fabrics: ensure zero kato for non-persistent controllers

Add a helper function that sets the default kato value for the
discovery controllers. Along with ensuring a non-zero kato value
(i.e. NVMF_DEF_DISC_TMO) is passed to a persistent discovery
controller, it also ensures a zero kato value is passed to a
non-persistent discovery controller, as mandated by the NVMe spec.

Signed-off-by: Martin George <marting@netapp.com>
[dwagner: ported from monolithic branch]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
fabrics.c