diff options
author | Steve Wise <swise@opengridcomputing.com> | 2018-06-05 13:16:41 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-08 14:51:10 -0400 |
commit | d4c68c7a8e2aa060d3c245052c76e74dd20b141b (patch) | |
tree | 1e3779b9f68275fe59031f355541f8269a4f3178 | |
parent | 12a0b662210702c6b0ce9f66f0c177ff1dea99cb (diff) |
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: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/nvme/host/rdma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 7b3f08410430..2aba03876d84 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c | |||
@@ -1951,8 +1951,9 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev, | |||
1951 | } | 1951 | } |
1952 | 1952 | ||
1953 | /* sanity check keyed sgls */ | 1953 | /* sanity check keyed sgls */ |
1954 | if (!(ctrl->ctrl.sgls & (1 << 20))) { | 1954 | if (!(ctrl->ctrl.sgls & (1 << 2))) { |
1955 | dev_err(ctrl->ctrl.device, "Mandatory keyed sgls are not support\n"); | 1955 | dev_err(ctrl->ctrl.device, |
1956 | "Mandatory keyed sgls are not supported!\n"); | ||
1956 | ret = -EINVAL; | 1957 | ret = -EINVAL; |
1957 | goto out_remove_admin_queue; | 1958 | goto out_remove_admin_queue; |
1958 | } | 1959 | } |