]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/mlx5: Fix AH static rate parsing
authorPatrisious Haddad <phaddad@nvidia.com>
Mon, 10 Feb 2025 11:32:39 +0000 (13:32 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 20 Feb 2025 06:43:13 +0000 (01:43 -0500)
commitc534ffda781f44a1c6ac25ef6e0e444da38ca8af
treee8940220d915d6c4f8c1225d25caf49fc169322d
parent3d8c6f26893d55fab218ad086719de1fc9bb86ba
RDMA/mlx5: Fix AH static rate parsing

Previously static rate wasn't translated according to our PRM but simply
used the 4 lower bytes.

Correctly translate static rate value passed in AH creation attribute
according to our PRM expected values.

In addition change 800GB mapping to zero, which is the PRM
specified value.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Link: https://patch.msgid.link/18ef4cc5396caf80728341eb74738cd777596f60.1739187089.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/ah.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/qp.h