]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Set bp->max_tpa according to what the FW supports
authorMichael Chan <michael.chan@broadcom.com>
Mon, 4 May 2026 08:36:09 +0000 (14:06 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 00:36:14 +0000 (17:36 -0700)
commit54c28fab2fa5afd681c9c4b10f4f6da1efdd397a
tree7b021076184686a2b070e3a7a23248e92e4cac5a
parent07f44433355f70fa97d4c44b4c0d2e86adc082fb
bnxt_en: Set bp->max_tpa according to what the FW supports

Fix the logic to set bp->max_tpa no higher than what the FW supports.
On P5 chips, some older FW sets max_tpa very low so we override it to
prevent performance regressions with the older FW.

Fixes: 79632e9ba386 ("bnxt_en: Expand bnxt_tpa_info struct to support 57500 chips.")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Colin Winegarden <colin.winegarden@broadcom.com>
Reviewed-by: Rukhsana Ansari <rukhsana.ansari@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20260504083611.1383776-3-pavan.chebbi@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c