Spdk/test/unit/lib
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
..
accel lib/accel: remove batching from the framework and plug-in modules 2022-06-30 13:32:29 -04:00
bdev bdev/nvme: nvme_ctrlr_create() gets prchk_flags from nvme_async_probe_ctx 2022-06-30 13:32:29 -04:00
blob spelling: test 2022-06-30 13:32:28 -04:00
blobfs test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
dma dma: Update memory domain context structure 2022-06-30 13:32:26 -04:00
env_dpdk test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
event scheduler/dynamic: don't adjust tsc too much for very busy cores 2022-06-30 13:32:25 -04:00
ftl spelling: test 2022-06-30 13:32:28 -04:00
idxd idxd: change NOTICELOGs to DEBUGLOGs 2022-06-30 13:32:27 -04:00
init spelling: test 2022-06-30 13:32:28 -04:00
ioat test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
iscsi spelling: test 2022-06-30 13:32:28 -04:00
json spelling: test 2022-06-30 13:32:28 -04:00
jsonrpc spelling: test 2022-06-30 13:32:28 -04:00
log test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
lvol test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
notify test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme nvme: make get INTEL log pages can be executed asynchronously 2022-06-30 13:32:28 -04:00
nvmf nvmf: don't always update discovery log when adding hosts 2022-06-30 13:32:29 -04:00
reduce spelling: test 2022-06-30 13:32:28 -04:00
rpc ut/rpc: wrap syscalls using spdk.mock.unittest.mk 2022-06-30 13:32:25 -04:00
scsi spelling: test 2022-06-30 13:32:28 -04:00
sock spelling: test 2022-06-30 13:32:28 -04:00
thread spelling: test 2022-06-30 13:32:28 -04:00
util spelling: test 2022-06-30 13:32:28 -04:00
vhost spelling: test 2022-06-30 13:32:28 -04:00
json_mock.c ut/json_mock: Add spdk_json_write_string_fmt() 2021-02-09 11:29:53 +00:00
Makefile unittest/rpc: add rpc unittest 2021-09-06 09:55:33 +00:00