HomeFreeBSD

bnxt_en/re: Use FW defined resource limit for RoCE

Description

bnxt_en/re: Use FW defined resource limit for RoCE

Check FW flags for status of Resource Limits. If bit
FUNC_QCAPS_RESP_FLAGS_EXT2_SW_MAX_RESOURCE_LIMITS_SUPPORTED
is set, that means FW set the resource limit for L2 and RoCE.
We'll then do the following:

L2 driver would allocate context memory based on what FW reported.
RoCE driver uses FW reported values without capping. These values
are the total FW reported value minus L2 and other components shares.

For example:

FW reported max_qps = 137217 in L2 query, this includes:
5120 for L2
1025 for QP1
131072 for RoCE
L2 will allocate backing store memory for the total.
In RoCE query, we'll get max_qp = 131072 and use it
without further capping.

Reviewed by: ssaxena
Differential Revision: https://reviews.freebsd.org/D54522
MFC after: 3 days

(cherry picked from commit 913e454f306124c83797bfa71681dcdf806532c6)

Details

Provenance
sreekanth.reddy_broadcom.comAuthored on Jan 23 2026, 4:32 PM
sumit.saxena_broadcom.comCommitted on Feb 27 2026, 12:04 PM
Differential Revision
D54522: bnxt_en/re: Use FW defined resource limit for RoCE
Parents
rG1ff252f0bb82: bnxt_re/libbnxtre: Add RoCE support for BCM576xx controllers
Branches
Unknown
Tags
Unknown