bdev/nvme: Increase the number of namespaces supported per NVMe device from 32 to 128

When executing construct_nvme_bdev RPC method, if the NVMe SSD has
more than 32 namespace in it, then the response is displayed as invalid.
Increased the maximum number of namespaces supported per NVMe device from
32 to 128.

Change-Id: I79491af662b8d2059ad3e0920040a44a82d50064
Signed-off-by: Aneesh Pachilangottil <aneesh.pachilangottil@wdc.com>
Reviewed-on: https://review.gerrithub.io/409926
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Aneesh Pachilangottil 2018-05-03 13:15:28 -04:00 committed by Daniel Verkamp
parent 1c02d2a8b5
commit 696c6bc27e
2 changed files with 3 additions and 2 deletions

View File

@ -949,7 +949,8 @@ spdk_bdev_nvme_create(struct spdk_nvme_transport_id *trid,
names[j] = nvme_bdev->disk.name;
j++;
} else {
SPDK_ERRLOG("Unable to return all names of created bdevs\n");
SPDK_ERRLOG("Maximum number of namespaces supported per NVMe controller is %zu. Unable to return all names of created bdevs\n",
*count);
free(probe_ctx);
return -1;
}

View File

@ -79,7 +79,7 @@ static const struct spdk_json_object_decoder rpc_construct_nvme_decoders[] = {
{"subnqn", offsetof(struct rpc_construct_nvme, subnqn), spdk_json_decode_string, true},
};
#define NVME_MAX_BDEVS_PER_RPC 32
#define NVME_MAX_BDEVS_PER_RPC 128
static void
spdk_rpc_construct_nvme_bdev(struct spdk_jsonrpc_request *request,