Commit b8da09b6 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent b7497942
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}
}