nvmf: start even if no transports are available
Attempting to add a listen address for an unavailable transport will fail with a better error message. Change-Id: If4cf5b66c16dadcb6e0f0b28cea4aa510ba6a9fc Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
7035c39136
commit
4b887a8cbc
@ -71,7 +71,7 @@ spdk_nvmf_tgt_init(uint16_t max_queue_depth, uint16_t max_queues_per_sess,
|
||||
SPDK_TRACELOG(SPDK_TRACE_NVMF, "Max I/O Size: %d bytes\n", max_io_size);
|
||||
|
||||
rc = spdk_nvmf_transport_init();
|
||||
if (rc <= 0) {
|
||||
if (rc < 0) {
|
||||
SPDK_ERRLOG("Transport initialization failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user