Skip to content

Commit f8adaac

Browse files
committed
RDMA/mana_ib: Fix DSCP value in modify QP
jira LE-4365 Rebuild_History Non-Buildable kernel-6.12.0-55.38.1.el10_0 commit-author Shiraz Saleem <[email protected]> commit 62de0e6 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]> (cherry picked from commit 62de0e6) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 8285c64 commit f8adaac

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
@@ -561,7 +561,7 @@ static int mana_ib_gd_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
561561
req.ah_attr.dest_port = ROCE_V2_UDP_DPORT;
562562
req.ah_attr.src_port = rdma_get_udp_sport(attr->ah_attr.grh.flow_label,
563563
ibqp->qp_num, attr->dest_qp_num);
564-
req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class;
564+
req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class >> 2;
565565
req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit;
566566
}
567567

0 commit comments

Comments
 (0)