diff options
author | James Smart <jsmart2021@gmail.com> | 2017-02-17 07:57:28 -0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-22 13:34:00 -0700 |
commit | faef3af69dd7976315d37316698a436b81d05363 (patch) | |
tree | 3b99804390a6b3f87701dae14626b26e34b37ab2 /drivers/nvme | |
parent | 9ef3932e250f8e2e11ffbc0c1f28b3ba5dc40cd6 (diff) | |
download | op-kernel-dev-faef3af69dd7976315d37316698a436b81d05363.zip op-kernel-dev-faef3af69dd7976315d37316698a436b81d05363.tar.gz |
nvme-fc: don't bother to validate ioccsz and iorcsz
Discovery controllers don't set the values. They are in reserved
areas of the Identify Controller data structure.
Given the cmd completed, the minimal capsule sizes are supported,
so no need to check nqn to detect discovery controllers and
special case validations.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 6186fde..9690beb 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -2353,18 +2353,6 @@ __nvme_fc_create_ctrl(struct device *dev, struct nvmf_ctrl_options *opts, /* sanity checks */ - /* FC-NVME supports 64-byte SQE only */ - if (ctrl->ctrl.ioccsz != 4) { - dev_err(ctrl->ctrl.device, "ioccsz %d is not supported!\n", - ctrl->ctrl.ioccsz); - goto out_remove_admin_queue; - } - /* FC-NVME supports 16-byte CQE only */ - if (ctrl->ctrl.iorcsz != 1) { - dev_err(ctrl->ctrl.device, "iorcsz %d is not supported!\n", - ctrl->ctrl.iorcsz); - goto out_remove_admin_queue; - } /* FC-NVME does not have other data in the capsule */ if (ctrl->ctrl.icdoff) { dev_err(ctrl->ctrl.device, "icdoff %d is not supported!\n", |