瀏覽代碼

RDMA/cxgb4: Set fence flag for inv-local-stag work requests

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Steve Wise 15 年之前
父節點
當前提交
4ab1eb9c8d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/infiniband/hw/cxgb4/qp.c

+ 2 - 0
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);