numam-spdk/scripts/rpc
Jim Harris b68f2eeb0b 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-01-10 15:23:39 +00:00
..
__init__.py net: Remove library 2021-07-13 08:57:58 +00:00
app.py spelling: scripts 2021-12-03 08:13:04 +00:00
bdev.py bdev_nvme: add bdev_nvme_start_discovery RPC 2022-01-10 15:23:39 +00:00
blobfs.py rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
client.py scripts/rpc: Make sure address argument is properly interpreted 2021-05-24 10:11:05 +00:00
cmd_parser.py rpc: add a command parser 2021-05-11 12:02:00 +00:00
env_dpdk.py env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00
helpers.py rpc.py: add framework for detecting deprecated aliases 2019-05-09 04:37:08 +00:00
idxd.py idxd/rpc: Revise the rpc function to use kernel or user driver 2021-07-13 17:22:30 +00:00
ioat.py ioat: remove whitelist/blacklist functionality 2020-12-03 09:41:07 +00:00
iscsi.py spelling: scripts 2021-12-03 08:13:04 +00:00
log.py RPC: rename get_log_flags to log_get_flags 2019-09-24 16:42:41 +00:00
lvol.py RPC: rename rpc construct_lvol_store to bdev_lvol_create_lvstore 2019-08-30 16:40:44 +00:00
nbd.py rpc: Rename get_nbd_disks to nbd_get_disks 2019-09-19 20:56:35 +00:00
notify.py RPC: rename get_notifications to notify_get_notifications 2019-09-24 16:42:41 +00:00
nvme.py bdev/opal: Add rpc for init, revert and get info 2019-10-24 17:09:57 +00:00
nvmf.py nvmf: zero-copy enable flag in transport opts 2022-01-06 18:53:42 +00:00
pmem.py rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
sock.py socket: Remove deprecated enable_zerocopy_send 2021-07-23 10:30:25 +00:00
subsystem.py rpc: add method for listing PCI devices 2021-12-14 09:08:59 +00:00
trace.py rpc: Rename get_tpoint_group_mask trace_get_tpoint_group_mask 2019-10-01 13:59:37 +00:00
vhost.py virtio-blk: add hotplug rpc 2021-04-16 19:21:13 +00:00
vmd.py event/subsystem/vmd: RPC support 2019-07-26 18:27:40 +00:00