Page MenuHomeFreeBSD

bnxt_en/re: Use FW defined resource limit for RoCE
ClosedPublic

Authored by sreekanth.reddy_broadcom.com on Jan 5 2026, 1:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 23, 3:39 PM
Unknown Object (File)
Mon, Feb 23, 3:38 PM
Unknown Object (File)
Mon, Feb 23, 3:38 PM
Unknown Object (File)
Mon, Feb 23, 2:52 AM
Unknown Object (File)
Sun, Feb 22, 1:56 AM
Unknown Object (File)
Wed, Feb 18, 12:20 PM
Unknown Object (File)
Mon, Feb 16, 5:08 PM
Unknown Object (File)
Fri, Feb 13, 10:45 AM
Subscribers
None

Details

Summary

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:

  1. L2 driver would allocate context memory based on what FW reported.
  2. 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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable