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
Unknown Object (File)
Sat, Jun 27, 1:37 PM
Unknown Object (File)
Sat, Jun 27, 12:34 PM
Unknown Object (File)
Sat, Jun 27, 5:35 AM
Unknown Object (File)
Jun 10 2026, 3:36 AM
Unknown Object (File)
Jun 9 2026, 9:07 AM
Unknown Object (File)
Jun 9 2026, 7:38 AM
Unknown Object (File)
Jun 9 2026, 5:05 AM
Unknown Object (File)
Jun 9 2026, 5:03 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