diff options
author | Steve Wise <swise@opengridcomputing.com> | 2010-05-20 16:58:10 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-05-24 21:08:04 -0700 |
commit | 4ab1eb9c8df620d5ed64fa1d1be683862b311685 (patch) | |
tree | 9c20d20ad6929d0b61e32c98e5762818201c5b91 /drivers/infiniband | |
parent | f64b88433c27815f931d4d5ff7db7ac701fdc8c9 (diff) | |
download | kernel_samsung_espresso10-4ab1eb9c8df620d5ed64fa1d1be683862b311685.zip kernel_samsung_espresso10-4ab1eb9c8df620d5ed64fa1d1be683862b311685.tar.gz kernel_samsung_espresso10-4ab1eb9c8df620d5ed64fa1d1be683862b311685.tar.bz2 |
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |