]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/mlx5: Fix TPH extraction in FRMR pool key
authorMichael Guralnik <michaelgur@nvidia.com>
Wed, 10 Jun 2026 00:01:38 +0000 (03:01 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 11 Jun 2026 18:36:08 +0000 (15:36 -0300)
commitfe683274fee497834d2e6b54b7342642e1f21892
tree1c4371d5eaac640101fc01c783aec2bad09a50b0
parentc70fcfa9881207659ad193ae10a3bd56b2ae3f8a
RDMA/mlx5: Fix TPH extraction in FRMR pool key

Fix reading the PH value from the FRMR pool key by shifting the pool key
to the relevant bits.

Fixes: 36680ef7bceb ("RDMA/mlx5: Switch from MR cache to FRMR pools")
Link: https://patch.msgid.link/r/20260610000145.820592-3-michaelgur@nvidia.com
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c