]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/bnxt_re: Add send queue size check for variable wqe
authorDamodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Tue, 17 Dec 2024 10:26:47 +0000 (15:56 +0530)
committerLeon Romanovsky <leon@kernel.org>
Thu, 19 Dec 2024 11:57:19 +0000 (06:57 -0500)
commitd13be54dc18baee7a3e44349b80755a8c8205d3f
tree2efa72c288e960e5808d6435f3b12d4dc05b32cc
parentd5a38bf2f35979537c526acbc56bc435ed40685f
RDMA/bnxt_re: Add send queue size check for variable wqe

For the fixed WQE case, HW supports 0xFFFF WQEs.
For variable Size WQEs, HW treats this number as
the 16 bytes slots. The maximum supported WQEs
needs to be adjusted based on the number of slots.
Set a maximum WQE limit for variable WQE scenario.

Fixes: de1d364c3815 ("RDMA/bnxt_re: Add support for Variable WQE in Genp7 adapters")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/20241217102649.1377704-4-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/qplib_sp.c