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:
parent
b74979421f
commit
b8da09b629
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user