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 <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-12-15 14:42:43 -07:00
parent b74979421f
commit b8da09b629

View File

@ -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;
}
}