Skip to content

Commit 62de0e6

Browse files
Shiraz Saleemrleon
authored andcommitted
RDMA/mana_ib: Fix DSCP value in modify QP
Convert the traffic_class in GRH to a DSCP value as required by the HW. Fixes: e095405 ("RDMA/mana_ib: Modify QP state") Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Konstantin Taranov <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 9fb3dd8 commit 62de0e6

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mana

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mana/qp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ static int mana_ib_gd_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
772772
req.ah_attr.dest_port = ROCE_V2_UDP_DPORT;
773773
req.ah_attr.src_port = rdma_get_udp_sport(attr->ah_attr.grh.flow_label,
774774
ibqp->qp_num, attr->dest_qp_num);
775-
req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class;
775+
req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class >> 2;
776776
req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit;
777777
}
778778

0 commit comments

Comments
 (0)