linux/drivers/infiniband/hw
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
..
bnxt_re RDMA/bnxt_re: Fix the GID table length 2024-10-11 20:49:02 -03:00
cxgb4 RDMA/cxgb4: Dump vendor specific QP details 2024-10-21 13:22:33 -03:00
efa RDMA/efa: Add support for node guid 2024-08-23 11:52:45 -03:00
erdma RDMA/erdma: Return QP state in erdma_query_qp 2024-09-09 21:17:09 +03:00
hfi1 [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
hns RDMA/hns: Fix ah error counter in sw stat not increasing 2024-09-16 11:21:58 +03:00
irdma RDMA/irdma: Fix misspelling of "accept*" 2024-10-11 14:06:09 -03:00
mana RDMA/mana_ib: use the correct page size for mapping user-mode doorbell page 2024-09-02 10:32:08 +03:00
mlx4 RDMA/mlx4: Simplify an alloc_ordered_workqueue() invocation 2024-08-23 11:37:49 -03:00
mlx5 RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down 2024-10-21 13:25:44 -03:00
mthca RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
ocrdma RDMA/ocrdma: Don't inline statistics functions 2024-07-11 13:25:11 +03:00
qedr RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
qib IB/qib: Remove unused declarations in header file 2024-09-10 16:41:03 +03:00
usnic IOMMU Updates for Linux v6.11 2024-07-19 09:59:58 -07:00
vmw_pvrdma RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
Makefile RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00