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:
Daniel Verkamp 2017-06-16 12:39:37 -07:00 committed by Jim Harris
parent 65ff7a63d2
commit 721a4d44ec

View File

@ -951,7 +951,7 @@ bdev_nvme_library_init(void)
probe_ctx->names[i] = val; probe_ctx->names[i] = val;
probe_ctx->count++; 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') { if (probe_ctx->trids[i].subnqn[0] == '\0') {
SPDK_ERRLOG("Need to provide subsystem nqn\n"); SPDK_ERRLOG("Need to provide subsystem nqn\n");
rc = -1; rc = -1;