From: Amrani, Ram Date: Thu, 27 Apr 2017 10:35:31 +0000 (+0300) Subject: RDMA/qedr: reset access control when registering a MR X-Git-Tag: MMI-PSA29.97-13-9~5649^3~92 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08c4cf51e30f0a6977fa4be8d97f3e34d7fede0b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git RDMA/qedr: reset access control when registering a MR Signed-off-by: Ram Amrani Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 49b7edc42adc..60b19d4935e3 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -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,