forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
7343b231f2
commit
7667abd152
@ -1609,7 +1609,9 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
||||
mthca_opcode[wr->opcode]);
|
||||
wmb();
|
||||
((struct mthca_next_seg *) prev_wqe)->ee_nds =
|
||||
cpu_to_be32((size0 ? 0 : MTHCA_NEXT_DBD) | size);
|
||||
cpu_to_be32((size0 ? 0 : MTHCA_NEXT_DBD) | size |
|
||||
((wr->send_flags & IB_SEND_FENCE) ?
|
||||
MTHCA_NEXT_FENCE : 0));
|
||||
|
||||
if (!size0) {
|
||||
size0 = size;
|
||||
@ -1971,7 +1973,9 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
||||
mthca_opcode[wr->opcode]);
|
||||
wmb();
|
||||
((struct mthca_next_seg *) prev_wqe)->ee_nds =
|
||||
cpu_to_be32(MTHCA_NEXT_DBD | size);
|
||||
cpu_to_be32(MTHCA_NEXT_DBD | size |
|
||||
((wr->send_flags & IB_SEND_FENCE) ?
|
||||
MTHCA_NEXT_FENCE : 0));
|
||||
|
||||
if (!size0) {
|
||||
size0 = size;
|
||||
|
Loading…
Reference in New Issue
Block a user