|
@@ -174,7 +174,9 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
|
|
|
|
|
|
roce_set_field(ud_sq_wqe->u32_36,
|
|
|
UD_SEND_WQE_U32_36_FLOW_LABEL_M,
|
|
|
- UD_SEND_WQE_U32_36_FLOW_LABEL_S, 0);
|
|
|
+ UD_SEND_WQE_U32_36_FLOW_LABEL_S,
|
|
|
+ ah->av.sl_tclass_flowlabel &
|
|
|
+ HNS_ROCE_FLOW_LABEL_MASK);
|
|
|
roce_set_field(ud_sq_wqe->u32_36,
|
|
|
UD_SEND_WQE_U32_36_PRIORITY_M,
|
|
|
UD_SEND_WQE_U32_36_PRIORITY_S,
|
|
@@ -192,7 +194,9 @@ static int hns_roce_v1_post_send(struct ib_qp *ibqp,
|
|
|
ah->av.hop_limit);
|
|
|
roce_set_field(ud_sq_wqe->u32_40,
|
|
|
UD_SEND_WQE_U32_40_TRAFFIC_CLASS_M,
|
|
|
- UD_SEND_WQE_U32_40_TRAFFIC_CLASS_S, 0);
|
|
|
+ UD_SEND_WQE_U32_40_TRAFFIC_CLASS_S,
|
|
|
+ ah->av.sl_tclass_flowlabel >>
|
|
|
+ HNS_ROCE_TCLASS_SHIFT);
|
|
|
|
|
|
memcpy(&ud_sq_wqe->dgid[0], &ah->av.dgid[0], GID_LEN);
|
|
|
|