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
F171006966: D57300.id178826.diff
Tue, Sep 8, 3:58 AM
F171004037: D57300.id178887.diff
Tue, Sep 8, 3:30 AM
F170984705: D57300.diff
Tue, Sep 8, 12:38 AM
Unknown Object (File)
Sun, Sep 6, 1:23 AM
Unknown Object (File)
Sat, Sep 5, 8:32 AM
Unknown Object (File)
Sat, Sep 5, 3:23 AM
Unknown Object (File)
Fri, Sep 4, 11:31 PM
Unknown Object (File)
Fri, Sep 4, 5:07 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