Loading
bdev/nvme: Get the connected trid from NVMe driver in dump_info_json()
bdev_nvme_failover() updates trid of spdk_nvme_ctrlr using spdk_nvme_ctrlr_set_trid(). Hence trid of spdk_nvme_ctrlr is always up-to-date. Hence bdev_nvme_dump_info_json() can query trid simply by calling spdk_nvme_ctrlr_get_transport_id(). The queried trid is a const parameter. Hence add const to nvme_bdev_dump_trid_json(). Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id04881f9e7596b910bdf26c4f14f1ebcb3cdbbee Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5103 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>