Spdk/test/nvmf
Daniel Verkamp eb387189c2 nvmf: don't change NN while ctrlrs exist
This was partially fixed in commit 1e481d0438 ("nvmf: Do not allow NN
to change while connections present"), but we did not handle the case
where the user asked to add a NS with a NSID outside the current NN.

This patch reworks the logic (again) to be more straightforward and
hopefully more obviously correct.

Some confusion between max_allowed_nsid and max_nsid is also clarified;
if max_allowed_nsid is set, then max_nsid == max_allowed_nsid at all
times, so we don't need the extra logic when calculating NN in
spdk_nvmf_ctrlr_identify_ctrlr().

Change-Id: If531baf1114e03441ff3e1e1be098071702d9056
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/414894
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-06-13 21:52:38 +00:00
..
discovery autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
filesystem test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
fio test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
host nvmf: don't change NN while ctrlrs exist 2018-06-13 21:52:38 +00:00
lvol test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
multiconnection test/nvmf: fix waitforblk usage in multiconnection 2018-06-01 23:25:37 +00:00
nvme_cli test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
rpc Segfault occurs during connect to the subsystem when a namespace is added with a nsid smaller than the nsid previously added 2018-04-03 13:26:14 -04:00
shutdown autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common.sh test/nvmf: update test scripts from ifconfig to iproute2 2018-04-12 13:19:39 -04:00
nvmf.conf nvmf: SGL support for NVMF RDMA Driver. 2018-06-04 17:15:49 +00:00
nvmf.sh test/nvmf: move multiconnection out of NIGHTLY_FAILING 2018-06-06 19:32:15 +00:00
test_plan.md test/nvmf: remove nvmf_tgt+pmem test 2018-04-03 14:14:29 -04:00