lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <DS2PR21MB51814DF56F08DC385B5860DECE4AA@DS2PR21MB5181.namprd21.prod.outlook.com>
Date: Sat, 12 Jul 2025 19:12:32 +0000
From: Long Li <longli@...rosoft.com>
To: Konstantin Taranov <kotaranov@...ux.microsoft.com>, Konstantin Taranov
	<kotaranov@...rosoft.com>, Shiraz Saleem <shirazsaleem@...rosoft.com>,
	"jgg@...pe.ca" <jgg@...pe.ca>, "leon@...nel.org" <leon@...nel.org>
CC: "linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP

> Subject: [PATCH rdma-next 1/1] RDMA/mana_ib: Fix DSCP value in modify QP
> 
> From: Shiraz Saleem <shirazsaleem@...rosoft.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@...rosoft.com>
> Signed-off-by: Konstantin Taranov <kotaranov@...rosoft.com>


Reviewed-by: Long Li <longli@...rosoft.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ