Commit ea3a2772 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme: do not attach DPDK driver if user does not want to attach



This bug was preventing multiple calls to spdk_nvme_probe() from
working, since the first call would return 0 from all of the DPDK driver
init callbacks and prevent other devices from ever being enumerated in
subsequent calls.

Reported-by: default avatarTsuyoshi Uchida <tuchida@us.fujitsu.com>
Change-Id: I871aa170bbd03be111604eeabe3a7a7a4f40ce89
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 4caf3c56
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -318,9 +318,10 @@ nvme_ctrlr_probe(struct spdk_nvme_probe_info *probe_info, void *devhandle,
		}

		TAILQ_INSERT_TAIL(&g_spdk_nvme_driver->init_ctrlrs, ctrlr, tailq);
		return 0;
	}

	return 0;
	return 1;
}

static int