linux/drivers/infiniband
Patrisious Haddad 78ed28e08e RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down
After the cited commit below max_dest_rd_atomic and max_rd_atomic values
are being rounded down to the next power of 2. As opposed to the old
behavior and mlx4 driver where they used to be rounded up instead.

In order to stay consistent with older code and other drivers, revert to
using fls round function which rounds up to the next power of 2.

Fixes: f18e26af6a ("RDMA/mlx5: Convert modify QP to use MLX5_SET macros")
Link: https://patch.msgid.link/r/d85515d6ef21a2fa8ef4c8293dce9b58df8a6297.1728550179.git.leon@kernel.org
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2024-10-21 13:25:44 -03:00
..
core RDMA/core: Fix ENODEV error for iWARP test over vlan 2024-10-08 15:07:41 +03:00
hw RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down 2024-10-21 13:25:44 -03:00
sw RDMA/siw: Add sendpage_ok() check to disable MSG_SPLICE_PAGES 2024-10-11 13:55:53 -03:00
ulp RDMA/srpt: Make slab cache names unique 2024-10-11 14:07:33 -03:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00