Page MenuHomeFreeBSD

bnxt_en: Address review comments for core SR-IOV support
ClosedPublic

Authored by chandrakanth.patil_broadcom.com on Apr 26 2026, 1:01 PM.
Tags
None
Referenced Files
F173961013: D56644.diff
Tue, Sep 29, 4:07 PM
Unknown Object (File)
Mon, Sep 28, 2:44 PM
Unknown Object (File)
Sun, Sep 27, 8:50 AM
Unknown Object (File)
Sat, Sep 26, 11:56 PM
Unknown Object (File)
Tue, Sep 22, 9:47 AM
Unknown Object (File)
Thu, Sep 10, 10:20 PM
Unknown Object (File)
Tue, Sep 8, 7:24 PM
Unknown Object (File)
Sun, Sep 6, 2:13 AM
Subscribers

Details

Summary

Address review comments from the initial SR-IOV support patch.

This change includes the following updates:

  • Rename the P7 VF PCI ID macro from NETXTREME_E_P7_VF to E_P7_VF, since the P7/Thor2 product strings no longer use the NetXtreme name. Other VF device IDs are unchanged.
  • Make bnxt_vf_parse_schema() return a boolean value and use that return value in bnxt_iov_vf_add() to decide whether bnxt_set_vf_admin_mac() should be called. This also removes the separate has_admin_mac field.
  • Fix indentation in bnxt_free_vf_resources() after dma_free_coherent(), so the NULL assignment is clearly separate from the function call.
  • Update bnxt_hwrm_func_vf_resource_free() to use first_vf_id and last_vf_id while looping through HWRM_FUNC_VF_RESC_FREE.

This patch addresses the code review comments provided for:
https://reviews.freebsd.org/D56197

Diff Detail

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