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
F168636604: D57300.id178887.diff
Sat, Aug 29, 9:13 AM
F168633158: D57300.id.diff
Sat, Aug 29, 8:47 AM
Unknown Object (File)
Thu, Aug 27, 3:11 PM
Unknown Object (File)
Wed, Aug 26, 9:19 PM
Unknown Object (File)
Wed, Aug 26, 10:08 AM
Unknown Object (File)
Tue, Aug 25, 7:38 AM
Unknown Object (File)
Mon, Aug 24, 10:38 AM
Unknown Object (File)
Sun, Aug 23, 12:02 AM
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