Spdk/test/unit/lib/nvmf
Jim Harris 01cdc4afa1 nvmf: don't always update discovery log when adding hosts
If a subsystem has no listeners, then there is no need
to update the discovery log when adding a host, or setting
a subsystem to allow all hosts.

This eliminates some unnecessary discovery log update
notifications, especially when setting 'allow any hosts'
on a subsystem immediately after it is created (and before
it has any listeners).

Update unit test to check the adding a host to a
subsystem without listeners does not rev the genctr.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I63dab5df564269e574bb925890088f52063aa378
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10546
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2022-06-30 13:32:29 -04:00
..
ctrlr_bdev.c nvmf/ctrlr_bdev: Set DNR bit in status for failed NVMe passthru 2022-06-30 13:32:28 -04:00
ctrlr_discovery.c nvmf: don't always update discovery log when adding hosts 2022-06-30 13:32:29 -04:00
ctrlr.c nvmf: Add discovery filtering rules 2022-06-30 13:32:27 -04:00
fc_ls.c spelling: test 2022-06-30 13:32:28 -04:00
fc.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvmf.c nvmf: Correct the error path of transport creation. 2021-09-08 08:08:41 +00:00
rdma.c nvmf: deduplicate transport listen dump opts 2021-09-06 09:53:57 +00:00
subsystem.c spelling: test 2022-06-30 13:32:28 -04:00
tcp.c spelling: test 2022-06-30 13:32:28 -04:00
transport.c test/nvmf/transport: cases for creating polling group 2022-06-30 13:32:25 -04:00
vfio_user.c nvmf/vfio-user: check SQ doorbell is valid or not before use 2022-06-30 13:32:25 -04:00
Makefile test/nvmf: only build and run transport_ut.c when RDMA is enabled 2021-09-01 07:34:37 +00:00