linux/drivers/infiniband
Kashyap Desai 3de1b50f05 RDMA/bnxt_re: Fix max SGEs for the Work Request
commit 79d330fbdf upstream.

Gen P7 supports up to 13 SGEs for now. WQE software structure
can hold only 6 now. Since the max send sge is reported as
13, the stack can give requests up to 13 SGEs. This is causing
traffic failures and system crashes.

Use the define for max SGE supported for variable size. This
will work for both static and variable WQEs.

Fixes: 227f51743b ("RDMA/bnxt_re: Fix the max WQE size for static WQE support")
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/20241204075416.478431-2-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-01-09 13:32:09 +01:00
..
core RDMA/uverbs: Prevent integer overflow issue 2025-01-09 13:32:07 +01:00
hw RDMA/bnxt_re: Fix max SGEs for the Work Request 2025-01-09 13:32:09 +01:00
sw RDMA/rxe: Set queue pair cur_qp_state when being queried 2024-12-09 10:32:16 +01:00
ulp RDMA/rtrs: Ensure 'ib_sge list' is accessible 2025-01-09 13:32:02 +01: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