Page MenuHomeFreeBSD

bnxt: Fix build / load error for bnxt(4) in kernels without PCI_IOV
ClosedPublic

Authored by gallatin on May 28 2026, 3:43 PM.
Tags
None
Referenced Files
F173135656: D57300.diff
Wed, Sep 23, 8:42 PM
Unknown Object (File)
Mon, Sep 21, 4:24 PM
Unknown Object (File)
Mon, Sep 21, 2:01 AM
Unknown Object (File)
Sun, Sep 20, 11:09 AM
Unknown Object (File)
Thu, Sep 17, 3:06 PM
Unknown Object (File)
Fri, Sep 11, 4:38 AM
Unknown Object (File)
Fri, Sep 11, 1:21 AM
Unknown Object (File)
Thu, Sep 10, 11:38 PM
Subscribers
None

Details

Summary

The recent commit "7c450d1127c7 bnxt_en: Address review comments for core SR-IOV support" from https://reviews.freebsd.org/D56197 enabled SR-IOV support in bnxt by forcing PCI_IOV on in the driver, which is absolutely the wrong thing to do. This causes a kernel with nooptions PCI_IOV + options bnxt to fail to compile due to missing symbols, and/or the bnxt module to fail to load on a kernel without options PCI_IOV

This change removes the hard-forcing of PCI_IOV and adds shims to allow the driver to compile and work when the kernel is missing PCI_IOV support.

Fixes: 7c450d1127c7

Diff Detail

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