diff options
author | Dotan Barak <dotanb@mellanox.co.il> | 2006-02-28 00:02:00 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:18 -0500 |
commit | 7667abd1528782003d8b83c54756523ec547af6e (patch) | |
tree | c0f1bb5ff87388cc8be6ca6e23a7bc013b52d589 /drivers/infiniband/hw/mthca | |
parent | 7343b231f22cec11f069bcdbb0c9a417df2750d3 (diff) |
IB/mthca: Add support for send work request fence flag
Add support for IB_SEND_FENCE flag in post_send methods.
Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 8 |
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; |