]> www.infradead.org Git - linux.git/commit
RDMA/bnxt_re: Fix the max WQEs used in Static WQE mode
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 19 Sep 2024 03:06:01 +0000 (20:06 -0700)
committerLeon Romanovsky <leon@kernel.org>
Tue, 8 Oct 2024 07:12:36 +0000 (10:12 +0300)
commit8e65abacbce22fc8dcf6d58f7937e721d8a13fdd
tree9a28d9b7f6661b826060c885a6e735c6d51909b7
parentc5c1ae73b7741fa3b58e6e001b407825bb971225
RDMA/bnxt_re: Fix the max WQEs used in Static WQE mode

max_sw_wqe used for static wqe mode should be same as the max_wqe.
Calculate the max_sw_wqe only for the variable WQE mode.

Fixes: de1d364c3815 ("RDMA/bnxt_re: Add support for Variable WQE in Genp7 adapters")
Link: https://patch.msgid.link/r/1726715161-18941-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c