forked from Minki/linux
RDMA/qedr: reset access control when registering a MR
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
cc47dd684e
commit
08c4cf51e3
@ -2625,6 +2625,8 @@ static int qedr_prepare_reg(struct qedr_qp *qp,
|
||||
fwqe1->addr.lo = lower_32_bits(mr->ibmr.iova);
|
||||
fwqe1->l_key = wr->key;
|
||||
|
||||
fwqe2->access_ctrl = 0;
|
||||
|
||||
SET_FIELD2(fwqe2->access_ctrl, RDMA_SQ_FMR_WQE_2ND_REMOTE_READ,
|
||||
!!(wr->access & IB_ACCESS_REMOTE_READ));
|
||||
SET_FIELD2(fwqe2->access_ctrl, RDMA_SQ_FMR_WQE_2ND_REMOTE_WRITE,
|
||||
|
Loading…
Reference in New Issue
Block a user