* [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP
@ 2025-07-10 10:24 Konstantin Taranov
2025-07-12 19:12 ` Long Li
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Taranov @ 2025-07-10 10:24 UTC (permalink / raw)
To: kotaranov, shirazsaleem, longli, jgg, leon; +Cc: linux-rdma, linux-kernel
From: Shiraz Saleem <shirazsaleem@microsoft.com>
Convert the traffic_class in GRH to a DSCP value as required by the HW.
Fixes: e095405b45bb ("RDMA/mana_ib: Modify QP state")
Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
---
drivers/infiniband/hw/mana/qp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/mana/qp.c b/drivers/infiniband/hw/mana/qp.c
index c928af5..456d78c 100644
--- a/drivers/infiniband/hw/mana/qp.c
+++ b/drivers/infiniband/hw/mana/qp.c
@@ -773,7 +773,7 @@ static int mana_ib_gd_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
req.ah_attr.dest_port = ROCE_V2_UDP_DPORT;
req.ah_attr.src_port = rdma_get_udp_sport(attr->ah_attr.grh.flow_label,
ibqp->qp_num, attr->dest_qp_num);
- req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class;
+ req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class >> 2;
req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP
2025-07-10 10:24 [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP Konstantin Taranov
@ 2025-07-12 19:12 ` Long Li
0 siblings, 0 replies; 2+ messages in thread
From: Long Li @ 2025-07-12 19:12 UTC (permalink / raw)
To: Konstantin Taranov, Konstantin Taranov, Shiraz Saleem,
jgg@ziepe.ca, leon@kernel.org
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
> Subject: [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP
>
> From: Shiraz Saleem <shirazsaleem@microsoft.com>
>
> Convert the traffic_class in GRH to a DSCP value as required by the HW.
>
> Fixes: e095405b45bb ("RDMA/mana_ib: Modify QP state")
> Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
> ---
> drivers/infiniband/hw/mana/qp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/mana/qp.c b/drivers/infiniband/hw/mana/qp.c
> index c928af5..456d78c 100644
> --- a/drivers/infiniband/hw/mana/qp.c
> +++ b/drivers/infiniband/hw/mana/qp.c
> @@ -773,7 +773,7 @@ static int mana_ib_gd_modify_qp(struct ib_qp *ibqp,
> struct ib_qp_attr *attr,
> req.ah_attr.dest_port = ROCE_V2_UDP_DPORT;
> req.ah_attr.src_port = rdma_get_udp_sport(attr-
> >ah_attr.grh.flow_label,
> ibqp->qp_num, attr-
> >dest_qp_num);
> - req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class;
> + req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class >> 2;
> req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit;
> }
>
> --
> 2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-12 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 10:24 [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP Konstantin Taranov
2025-07-12 19:12 ` Long Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).