From b8da09b629c9f19a317edcb2495271fd5e278b65 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 15 Dec 2016 14:42:43 -0700 Subject: [PATCH] nvme/rdma: the NVMe SGL should use rkey, not lkey We should be sending the bounce buffer's remote key to the target so it can put it into an RDMA SGE on the remote side. Change-Id: Icded155ad2292c67baa722f001c9c07178bc2754 Signed-off-by: Daniel Verkamp --- lib/nvme/nvme_rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvme/nvme_rdma.c b/lib/nvme/nvme_rdma.c index 65fcb4253..17c327394 100644 --- a/lib/nvme/nvme_rdma.c +++ b/lib/nvme/nvme_rdma.c @@ -233,7 +233,7 @@ nvme_rdma_pre_copy_mem(struct nvme_rdma_qpair *rqpair, struct spdk_nvme_rdma_req nvme_sgl = &cmd->dptr.sgl1; nvme_sgl->address = (uint64_t)rdma_req->bb; - nvme_sgl->keyed.key = rdma_req->bb_mr->lkey; + nvme_sgl->keyed.key = rdma_req->bb_mr->rkey; } }