Page MenuHomeFreeBSD

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

Authored by chandrakanth.patil_broadcom.com on Fri, Apr 3, 11:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 10, 3:50 AM
Unknown Object (File)
Thu, Apr 9, 4:36 AM
Unknown Object (File)
Sat, Apr 4, 4:11 PM
Subscribers
None

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

Lint
Lint Skipped
Unit
Tests Skipped