aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/mthca/mthca_qp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c
index e99d735f5f36..c24260845bfd 100644
--- a/drivers/infiniband/hw/mthca/mthca_qp.c
+++ b/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -1609,7 +1609,9 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
1609 mthca_opcode[wr->opcode]); 1609 mthca_opcode[wr->opcode]);
1610 wmb(); 1610 wmb();
1611 ((struct mthca_next_seg *) prev_wqe)->ee_nds = 1611 ((struct mthca_next_seg *) prev_wqe)->ee_nds =
1612 cpu_to_be32((size0 ? 0 : MTHCA_NEXT_DBD) | size); 1612 cpu_to_be32((size0 ? 0 : MTHCA_NEXT_DBD) | size |
1613 ((wr->send_flags & IB_SEND_FENCE) ?
1614 MTHCA_NEXT_FENCE : 0));
1613 1615
1614 if (!size0) { 1616 if (!size0) {
1615 size0 = size; 1617 size0 = size;
@@ -1971,7 +1973,9 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
1971 mthca_opcode[wr->opcode]); 1973 mthca_opcode[wr->opcode]);
1972 wmb(); 1974 wmb();
1973 ((struct mthca_next_seg *) prev_wqe)->ee_nds = 1975 ((struct mthca_next_seg *) prev_wqe)->ee_nds =
1974 cpu_to_be32(MTHCA_NEXT_DBD | size); 1976 cpu_to_be32(MTHCA_NEXT_DBD | size |
1977 ((wr->send_flags & IB_SEND_FENCE) ?
1978 MTHCA_NEXT_FENCE : 0));
1975 1979
1976 if (!size0) { 1980 if (!size0) {
1977 size0 = size; 1981 size0 = size;