linux/drivers/infiniband
Kashyap Desai 82f1f575aa RDMA/bnxt_re: Fix allocation of QP table
Driver is creating QP table too early while probing before
querying firmware capabilities. Driver currently is using
a hard coded values of 64K as size while creating QP table.
This resulted in a crash when firmwre supported QP count is
more than 64K.

To fix the issue, move the QP tabel creation after the firmware
capabilities are queried. Use the firmware returned maximum value
of QPs while creating the QP table.

Fixes: b1b66ae094 ("bnxt_en: Use FW defined resource limits for RoCE")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1741021178-2569-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
History 2025-03-03 14:18:04 -05:00
..
core RDMA v6.14 merge window pull request 2025-01-24 12:21:28 -08:00
hw RDMA/bnxt_re: Fix allocation of QP table 2025-03-03 14:18:04 -05:00
sw RDMA/rxe: Fix the failure of ibv_query_device() and ibv_query_device_ex() tests 2025-03-03 14:06:47 -05:00
ulp SCSI misc on 20250126 2025-01-26 16:12:44 -08: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