]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/bnxt_re: Fix the max WQE size for static WQE support
authorSelvin Xavier <selvin.xavier@broadcom.com>
Wed, 4 Sep 2024 10:04:13 +0000 (03:04 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 9 Sep 2024 18:17:09 +0000 (21:17 +0300)
commit227f51743b61fe3f6fc481f0fb8086bf8c49b8c9
tree7a808024ca016a65b42f319dd2456c040d810a58
parentc6b2b5c86d448630cea58bf6fdfc761da3e3efb5
RDMA/bnxt_re: Fix the max WQE size for static WQE support

When variable size WQE is supported, max_qp_sges reported
is more than 6. For devices that supports variable size WQE,
the Send WQE size calculation is wrong when an an older library
that doesn't support variable size WQE is used.

Set the WQE size to 128 when static WQE is supported.

Fixes: de1d364c3815 ("RDMA/bnxt_re: Add support for Variable WQE in Genp7 adapters")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1725444253-13221-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h