]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Restore default stat ctxs for ULP when resource is available
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Tue, 31 Mar 2026 06:51:38 +0000 (23:51 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Apr 2026 03:12:56 +0000 (20:12 -0700)
commit071dbfa304e85a6b04a593e950d18fa170997288
treef47a803c56baa07f8df358f1c2d4f511ec3e35e4
parente4bf81dcad0a6fff2bbe5331d2c7fb30d45a788c
bnxt_en: Restore default stat ctxs for ULP when resource is available

During resource reservation, if the L2 driver does not have enough
MSIX vectors to provide to the RoCE driver, it sets the stat ctxs for
ULP also to 0 so that we don't have to reserve it unnecessarily.

However, subsequently the user may reduce L2 rings thereby freeing up
some resources that the L2 driver can now earmark for RoCE. In this
case, the driver should restore the default ULP stat ctxs to make
sure that all RoCE resources are ready for use.

The RoCE driver may fail to initialize in this scenario without this
fix.

Fixes: d630624ebd70 ("bnxt_en: Utilize ulp client resources if RoCE is not registered")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20260331065138.948205-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c