]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/bnxt_re: Fix max SGEs for the Work Request
authorKashyap Desai <kashyap.desai@broadcom.com>
Wed, 4 Dec 2024 07:54:12 +0000 (13:24 +0530)
committerLeon Romanovsky <leon@kernel.org>
Thu, 5 Dec 2024 08:57:52 +0000 (03:57 -0500)
commit79d330fbdffd8cee06d8bdf38d82cb62d8363a27
treef432fd31debc41d6005e54a0a7af6229ad61750b
parente05feab22fd7dabcd6d272c4e2401ec1acdfdb9b
RDMA/bnxt_re: Fix max SGEs for the Work Request

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: 227f51743b61 ("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>
drivers/infiniband/hw/bnxt_re/qplib_fp.h