Page MenuHomeFreeBSD

bnxt_en: VF ring reservation, HWRM registration, and PF-only operation guards
ClosedPublic

Authored by chandrakanth.patil_broadcom.com on Apr 3 2026, 11:44 AM.
Tags
None
Referenced Files
F156946274: D56232.id174849.diff
Sun, May 17, 1:40 PM
F156946251: D56232.id174849.diff
Sun, May 17, 1:40 PM
Unknown Object (File)
Sun, May 17, 12:32 PM
Unknown Object (File)
Sat, May 16, 5:42 PM
Unknown Object (File)
Thu, May 14, 12:33 PM
Unknown Object (File)
Thu, May 7, 9:49 AM
Unknown Object (File)
Sun, May 3, 3:57 PM
Unknown Object (File)
Sun, May 3, 3:57 PM
Subscribers

Details

Summary

VFs require separate HWRM commands for ring reservation and async
completion ring setup, so a common PF/VF dispatcher is introduced and
the async CR path is extended to handle both. The PF must populate the
VF request forwarding bitmap during driver registration so the firmware
correctly forwards VF-originated HWRM commands. VF reservation strategy
and min-guaranteed capability flags are now parsed for correct resource
partitioning, and PF-only operations (DCB, NVM, package version sysctl)
are guarded against VF invocation.

The short command buffer allocation is also reordered before the function
reset to ensure extended HWRM messages are available when needed, a
prerequisite uncovered during VF bring-up.

Diff Detail

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