Commit d4c68c7a authored by Steve Wise's avatar Steve Wise Committed by Jens Axboe

nvme-rdma: correctly check for target keyed sgl support

The code was checking bit 20 instead of bit 2.  Also fixed the log entry.
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 12a0b662
...@@ -1951,8 +1951,9 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev, ...@@ -1951,8 +1951,9 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev,
} }
/* sanity check keyed sgls */ /* sanity check keyed sgls */
if (!(ctrl->ctrl.sgls & (1 << 20))) { if (!(ctrl->ctrl.sgls & (1 << 2))) {
dev_err(ctrl->ctrl.device, "Mandatory keyed sgls are not support\n"); dev_err(ctrl->ctrl.device,
"Mandatory keyed sgls are not supported!\n");
ret = -EINVAL; ret = -EINVAL;
goto out_remove_admin_queue; goto out_remove_admin_queue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment