Commit 2144f0e9 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme_spec: fix SPDK_NVME_MAX_IO_QUEUES off-by-one



Only 65535 I/O queues are allowed, not 65536.

Each I/O queue must have a unique queue ID, and since queue ID 0 is
reserved for the admin queue, there can be only 65535 unique I/O queue
IDs.

Change-Id: I51875e5a72e08ec1727365ca9706c43f3142fd83
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 42e10f3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ extern "C" {
 */
#define SPDK_NVME_GLOBAL_NS_TAG		((uint32_t)0xFFFFFFFF)

#define SPDK_NVME_MAX_IO_QUEUES		(1 << 16)
#define SPDK_NVME_MAX_IO_QUEUES		(65535)

/**
 * Indicates the maximum number of range sets that may be specified