Spdk/test
Jim Harris 59fdf4ce3a bdev_nvme: add bdev_nvme_start_discovery RPC
This patch adds the framework for a discovery
service in the bdev/nvme module.

Users can specify an IP/port of a discovery service.
The bdev/nvme module will connect to a discovery
controller, get the discovery log page, and then
register for AERs.  It will connect to each
subsystem specified in the initial log page.
AER completions will trigger fetching the log
page again, at which point new subsystems will
be connected to, or removed subsystems will be
detached.

This patch does the following:
* Adds the new start_discovery RPC
* Connects to the discovery controller
* Gets the discovery log page
* Registers for AERs
* Detach from discovery controllers at shutdown

Subsequent patches in this series will:
* Connect to subsystems listed in discovery log page
* Detach from subsystems that were listed in earlier
  discovery log pages but subsequently removed
* Add a stop_discovery RPC

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I54bfa896a48c5619676f156b5ea9f2d1f886c72f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10694
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
2022-06-30 13:32:30 -04:00
..
accel_engine test/accel_engine: add more test cases 2021-09-01 07:34:02 +00:00
app test/llvm_nvme_fuzz: add DELETE I/O COMPLETION QUEUE and DELETE I/O SUBMISSION QUEUE command test cases 2022-06-30 13:32:30 -04:00
bdev autotest: Skip use of any zoned nvme devices 2022-06-30 13:32:28 -04:00
blobfs test/blobfs: update rocksdb version 2022-06-30 13:32:29 -04:00
blobstore scheduler: Change main core frequency dynamically 2021-01-22 18:31:25 +00:00
common autopackage: Move extra RPM tests to nightly 2022-06-30 13:32:30 -04:00
compress test/nvmf: use recommended nvmf_create_subsystem rpc 2021-05-20 15:00:22 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Simple tests utilizing uring RPCs 2022-06-30 13:32:29 -04:00
dma test/dma: Update the test to run IO for some time 2022-06-30 13:32:27 -04:00
dpdk_memory_utility check_format: Ignore shellcheck's SC2128 and SC2178 directives 2021-06-30 22:43:05 +00:00
env spelling: test 2022-06-30 13:32:28 -04:00
event spelling: test 2022-06-30 13:32:28 -04:00
external_code spelling: test 2022-06-30 13:32:28 -04:00
ftl autotest: Skip use of any zoned nvme devices 2022-06-30 13:32:28 -04:00
fuzz nvme_fuzz: pass trid on command line only 2022-06-30 13:32:25 -04:00
interrupt spelling: test 2022-06-30 13:32:28 -04:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt spelling: test 2022-06-30 13:32:28 -04:00
json_config test/json_config: Simplify events check 2022-06-30 13:32:29 -04:00
lvol spelling: test 2022-06-30 13:32:28 -04:00
make build: don't put out-of-tree ocf build in build/ dir 2021-08-17 08:54:30 +00:00
nvme hw_hotplug.sh: fix the incorrect path to log.txt file 2022-06-30 13:32:30 -04:00
nvmf test: add iptables entry to forward packets across veth bridge 2022-06-30 13:32:30 -04:00
ocf check_format: Fixes for shellcheck's SC2251 directive 2021-06-30 22:43:05 +00:00
openstack test/openstack: restart whole devstack before tests 2022-06-30 13:32:29 -04:00
pmem spelling: test 2022-06-30 13:32:28 -04:00
rpc autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
rpc_client build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler test/scheduler: Ignore failures while removing dummy cgroups 2022-06-30 13:32:30 -04:00
setup autotest: Skip use of any zoned nvme devices 2022-06-30 13:32:28 -04:00
spdkcli autotest: Don't override default amount of hugepages on Linux to 8GB 2021-06-24 17:33:10 +00:00
thread test/thread: Add poller_perf to evaluate cost to run poller 2021-08-20 07:29:42 +00:00
unit bdev_nvme: add bdev_nvme_start_discovery RPC 2022-06-30 13:32:30 -04:00
vfio_user test/vfio_user: Restart vm, check if memory region register/unregister failed 2022-06-30 13:32:29 -04:00
vhost spelling: test 2022-06-30 13:32:28 -04:00
vmd test: replace VMD_WHITELIST with VMD_ALLOWED 2020-12-03 09:41:07 +00:00
Makefile test/dma: Add functional test to verify DMA 2022-06-30 13:32:25 -04:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00