1
linux/drivers/infiniband/hw/mlx5
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
..
ah.c
cmd.c RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cmd.h RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cong.c IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supported 2024-01-31 11:15:29 +02:00
counters.c RDMA/mlx5: Add Qcounters req_transport_retries_exceeded/req_rnr_retries_exceeded 2024-06-16 18:53:23 +03:00
counters.h
cq.c RDMA/mlx5: Send UAR page index as ioctl attribute 2024-06-27 16:28:22 -03:00
data_direct.c RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
data_direct.h RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
devx.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
devx.h
dm.c RDMA/mlx5: Support handling of SW encap ICM area 2023-12-12 09:03:57 +02:00
dm.h
doorbell.c
fs.c RDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation 2023-09-26 12:29:40 +03:00
fs.h
gsi.c
ib_rep.c RDMA/mlx5: Use IB set_netdev and get_netdev functions 2024-09-13 08:27:40 +03:00
ib_rep.h
ib_virt.c
Kconfig
macsec.c
macsec.h
mad.c RDMA/mlx5: Support per-plane port IB counters by querying PPCNT register 2024-07-01 15:38:05 +03:00
main.c RDMA/mlx5: Use IB set_netdev and get_netdev functions 2024-09-13 08:27:40 +03:00
Makefile RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
mem.c net/mlx5: Reimplement write combining test 2024-06-16 18:33:59 +03:00
mlx5_ib.h RDMA/mlx5: Use IB set_netdev and get_netdev functions 2024-09-13 08:27:40 +03:00
mr.c net/mlx5: Expand mkey page size to support 6 bits 2024-09-11 14:56:07 +03:00
odp.c RDMA/mlx5: Add implicit MR handling to ODP memory scheme 2024-09-11 14:56:33 +03:00
qos.c
qp.c RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down 2024-10-21 13:25:44 -03:00
qp.h
qpc.c RDMA/mlx5: Support plane device and driver APIs to add and delete it 2024-07-01 15:38:05 +03:00
restrack.c RDMA/mlx5: Track DCT, DCI and REG_UMR QPs as diver_detail resources. 2024-04-30 11:19:37 +03:00
restrack.h
srq_cmd.c
srq.c RDMA v6.11 merge window 2024-07-19 09:51:33 -07:00
srq.h
std_types.c RDMA/mlx5: Introduce GET_DATA_DIRECT_SYSFS_PATH ioctl 2024-08-11 11:12:50 +03:00
umr.c IB/mlx5: Fix UMR pd cleanup on error flow of driver init 2024-09-04 10:28:49 +03:00
umr.h RDMA/mlx5: Add support for DMABUF MR registrations with Data-direct 2024-08-11 11:12:50 +03:00
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-01-31 11:15:17 +02:00
wr.h