RDMA/hns: Set se attribute of sqwqe in hip08
authoroulijun <[email protected]>
Fri, 10 Nov 2017 08:55:46 +0000 (16:55 +0800)
committerDoug Ledford <[email protected]>
Fri, 10 Nov 2017 17:30:35 +0000 (12:30 -0500)
When send flags is IB_SEND_SOLICITED, the se(solicated event)
field of sqwqe will be set.

Signed-off-by: Lijun Ou <[email protected]>
Signed-off-by: Wei Hu (Xavier) <[email protected]>
Signed-off-by: Shaobo Xu <[email protected]>
Signed-off-by: Yixian Liu <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index 049a0dfd207e359ba823c1232bf317d7a75f739f..f2615446495cacc5c154af822464be31f8562ba7 100644 (file)
@@ -114,6 +114,9 @@ static int hns_roce_v2_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
                roce_set_bit(rc_sq_wqe->byte_4, V2_RC_SEND_WQE_BYTE_4_FENCE_S,
                            (wr->send_flags & IB_SEND_FENCE) ? 1 : 0);
 
+               roce_set_bit(rc_sq_wqe->byte_4, V2_RC_SEND_WQE_BYTE_4_SE_S,
+                           (wr->send_flags & IB_SEND_SOLICITED) ? 1 : 0);
+
                switch (wr->opcode) {
                case IB_WR_RDMA_READ:
                        roce_set_field(rc_sq_wqe->byte_4,