From: Steve Wise Date: Thu, 20 May 2010 21:58:10 +0000 (-0500) Subject: RDMA/cxgb4: Set fence flag for inv-local-stag work requests X-Git-Tag: v2.6.35-rc1~265^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ab1eb9c8df620d5ed64fa1d1be683862b311685;p=profile%2Fivi%2Fkernel-x86-ivi.git RDMA/cxgb4: Set fence flag for inv-local-stag work requests Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 83a01dc..9fb52fa 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -588,6 +588,8 @@ int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, err = build_fastreg(wqe, wr, &len16); break; case IB_WR_LOCAL_INV: + if (wr->send_flags & IB_SEND_FENCE) + fw_flags |= FW_RI_LOCAL_FENCE_FLAG; fw_opcode = FW_RI_INV_LSTAG_WR; swsqe->opcode = FW_RI_LOCAL_INV; err = build_inv_stag(wqe, wr, &len16);