nvmf: Report that we support more than one SGL element

Change-Id: Idf5aeb1fa3d6a3a83042bd699e0099b95e34f5b9
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/428776
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Seth Howell 2018-10-10 15:55:29 -07:00 committed by Jim Harris
parent 47fca7c7e8
commit e590f607e6

View File

@ -1525,7 +1525,12 @@ spdk_nvmf_ctrlr_identify_ctrlr(struct spdk_nvmf_ctrlr *ctrlr, struct spdk_nvme_c
cdata->nvmf_specific.iorcsz = sizeof(struct spdk_nvme_cpl) / 16;
cdata->nvmf_specific.icdoff = 0; /* offset starts directly after SQE */
cdata->nvmf_specific.ctrattr.ctrlr_model = SPDK_NVMF_CTRLR_MODEL_DYNAMIC;
cdata->nvmf_specific.msdbd = 1; /* target supports single SGL in capsule */
/* The RDMA transport supports up to SPDK_NVMF_MAX_SGL_ENTRIES descriptors. */
if (transport->ops->type == SPDK_NVME_TRANSPORT_RDMA) {
cdata->nvmf_specific.msdbd = SPDK_NVMF_MAX_SGL_ENTRIES;
} else {
cdata->nvmf_specific.msdbd = 1;
}
/* TODO: this should be set by the transport */
cdata->nvmf_specific.ioccsz += transport->opts.in_capsule_data_size / 16;