bdev/nvme: generalize check for NVMe-oF TRID types
Anything that is not a PCIe TransportID is a remote NVMe over Fabrics address and must have a subsystem NQN. Change-Id: I1d34ce09a2c4ad7d3ec14fd90b5afccc33eb2bbf Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/365917 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
65ff7a63d2
commit
721a4d44ec
@ -951,7 +951,7 @@ bdev_nvme_library_init(void)
|
||||
probe_ctx->names[i] = val;
|
||||
probe_ctx->count++;
|
||||
|
||||
if (probe_ctx->trids[i].trtype == SPDK_NVME_TRANSPORT_RDMA) {
|
||||
if (probe_ctx->trids[i].trtype != SPDK_NVME_TRANSPORT_PCIE) {
|
||||
if (probe_ctx->trids[i].subnqn[0] == '\0') {
|
||||
SPDK_ERRLOG("Need to provide subsystem nqn\n");
|
||||
rc = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user