BCE(4)
π bce β the QLogic NetXtreme II driver, bestie edition π
okay so this is bce, from section 4 of the Kernel Interfaces Manual (that's the BCE(4) situation, iykyk). It's the driver for QLogic NetXtreme II (BCM5706/5708/5709/5716) PCI/PCIe Gigabit Ethernet adapters. Sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
bce β the QLogic NetXtreme II (BCM5706/5708/5709/5716) PCI/PCIe Gigabit Ethernet adapter driver. That's the whole vibe. Networking, but make it NetXtreme II. π
π SYNOPSIS π
so you wanna compile this driver into the kernel? then you gotta put these lines in your kernel configuration file, no skipping:
device miibus
device bce
orrr, if you'd rather load the driver as a module at boot time (valid, honestly), put this line in loader.conf(5):
if_bce_load="YES"
either way, we get there. periodt β¨
πΈ DESCRIPTION πΈ
The bce driver supports QLogic's NetXtreme II product family, which includes the BCM5706, BCM5708, BCM5709 and BCM5716 Ethernet controllers.
The NetXtreme II product family is made up of various Converged NIC (or CNIC) Ethernet controllers, and they support a TCP Offload Engine (TOE), Remote DMA (RDMA), and iSCSI acceleration, plus standard L2 Ethernet traffic β all on the same controller. multitasking icon behavior, honestly π
The following features are supported in the bce driver under FreeBSD:
- IP/TCP/UDP checksum offload
- Jumbo frames (up to 9022 bytes)
- VLAN tag stripping
- Interrupt coalescing
- 10/100/1000Mbps operation in full-duplex mode
- 10/100Mbps operation in half-duplex mode
The bce driver supports the following media types:
- autoselect β Enable autoselection of the media type and options. The user can manually override the autoselected mode by adding media options to
rc.conf(5). - 10baseT/UTP β Set 10Mbps operation. The
ifconfig(8)mediaopt option can also be used to select either full-duplex or half-duplex modes. - 100baseTX β Set 100Mbps (Fast Ethernet) operation. The
ifconfig(8)mediaopt option can also be used to select either full-duplex or half-duplex modes. - 1000baseSX β Sets 1000Mbps operation. Only full-duplex mode is supported at this speed. that's just the rules bestie π
- 1000baseT β Set 1000baseT operation over twisted pair. Only full-duplex mode is supported.
- 2500BaseSX β Set 2500Mbps operation. Only full-duplex mode is supported.
The bce driver supports the following media options:
- full-duplex β Force full duplex operation.
- half-duplex β Force half duplex operation.
For more information on configuring this device, see ifconfig(8). π¦
π HARDWARE π
The bce driver provides support for various NICs based on the QLogic NetXtreme II family of Gigabit Ethernet controllers, including the following:
- QLogic NetXtreme II BCM5706 1000Base-SX
- QLogic NetXtreme II BCM5706 1000Base-T
- QLogic NetXtreme II BCM5708 1000Base-SX
- QLogic NetXtreme II BCM5708 1000Base-T
- QLogic NetXtreme II BCM5709 1000Base-SX
- QLogic NetXtreme II BCM5709 1000Base-T
- QLogic NetXtreme II BCM5716 1000Base-T
- Dell PowerEdge 1950 integrated BCM5708 NIC
- Dell PowerEdge 2950 integrated BCM5708 NIC
- Dell PowerEdge R710 integrated BCM5709 NIC
- HP NC370F Multifunction Gigabit Server Adapter
- HP NC370T Multifunction Gigabit Server Adapter
- HP NC370i Multifunction Gigabit Server Adapter
- HP NC371i Multifunction Gigabit Server Adapter
- HP NC373F PCIe Multifunc Giga Server Adapter
- HP NC373T PCIe Multifunction Gig Server Adapter
- HP NC373i Multifunction Gigabit Server Adapter
- HP NC373m Multifunction Gigabit Server Adapter
- HP NC374m PCIe Multifunction Adapter
- HP NC380T PCIe DP Multifunc Gig Server Adapter
- HP NC382T PCIe DP Multifunction Gigabit Server Adapter
- HP NC382i DP Multifunction Gigabit Server Adapter
- HP NC382m DP 1GbE Multifunction BL-c Adapter
look at that lineup. it's giving certified baddie hardware compatibility list β¨π
π§ SYSCTL VARIABLES π§
The following variables are available as both sysctl(8) variables and loader(8) tunables. yes bestie, both. double the access, double the slay π
hw.bce.verboseβ Enable/Disable verbose logging and output to the console. Useful for debugging (default0).hw.bce.msi_enableβ Enable/Disable MSI support (default1).hw.bce.tso_enableβ Enable/Disable TSO support (default1).hw.bce.strict_rx_mtuβ Enable/Disable strict RX frame size checking (default0).hw.bce.hdr_splitβ Enable/Disable frame header/payload splitting (default1).hw.bce.rx_pagesβ Set the number of memory pages assigned to receive packets by the driver. Due to alignment issues, this value can only be of the set1,2,4or8(default2).hw.bce.tx_pagesβ Set the number of memory pages assigned to transmit packets by the driver. Due to alignment issues, this value can only be of the set1,2,4or8(default2).hw.bce.rx_ticksβ Time in microsecond ticks to wait before generating a status block updates due to RX processing activity. Values from0-100are valid. A value of0disables this status block update. Cannot be set to0ifhw.bce.rx_quick_cons_tripis also0(default18).hw.bce.rx_ticks_intβ Time in microsecond ticks to wait during RX interrupt processing before generating a status block update. Values from0-100are valid. Valid values are in the range from0-100. A value of0disables this status block update (default18).hw.bce.rx_quick_cons_tripβ Number of RX Quick BD Chain entries that must be completed before a status block is generated. Values from0-256are valid. A value of0disables this status block update. Cannot be set to0ifhw.bce.rx_ticksis also0(default6).hw.bce.rx_quick_cons_trip_intβ Number of RX quick BD entries that must be completed before a status block is generated duing interrupt processing. Values from0-256are valid. A value of0disables this status block update (default6).hw.bce.tx_ticksβ Time in microsecond ticks to wait before a status block update is generated due to TX activitiy. Values from0-100are valid. A value of0disables this status block update. Cannot be set to0ifhw.bce.tx_quick_cons_tripis also0(default80).hw.bce.tx_ticks_intβ Time in microsecond ticks to wait in interrupt processing before a status block update is generated due to TX activity Values from0-100are valid. A value of0disables this status block update (default80).hw.bce.tx_cons_tripβ How many TX Quick BD Chain entries that must be completed before a status block is generated. Values from0-100are valid. A value of0disables this status block update. Cannot be set to0ifhw.bce.tx_ticksis also0(default20).hw.bce.tx_cons_trip_intβ How many TX Quick BD Chain entries that must be completed before a status block is generated during an interrupt. Values from0-100are valid. A value of0disables this status block update (default20).
lowkey there's more coming bestie, don't go anywhere π
π DIAGNOSTICS π
ok bestie, this is the part where the driver is basically yelling at you in dmesg. Every one of these starts with bce%d β that %d is the interface number, so if you've got more than one card you know exactly which one is being dramatic. Let's go one by one, no skips, no "oh I'll read that later". π«Ά
bce%d: PCI memory allocation failed!β fatal initialization error, the driver hit a wall it can't get past. RIP.bce%d: PCI map interrupt failed!β again, fatal initialization error. The driver is not okay and it's telling you.bce%d: Unsupported controller revision (%c%d)β the controller revision you've got is not one this driver supports. It's giving "wrong era, wrong vibe" π.bce%d: Controller initialization failed!β fatal initialization error. Yeah. That one.bce%d: NVRAM test failed!β the driver could not access the controller NVRAM correctly.bce%d: DMA resource allocation failed!β the driver could not allocate DMA memory to set up the controller's host memory data structures.bce%d: Interface allocation failed!β the driver could not create a network interface for the controller.bce%d: PHY probe failed!β the driver could not access the PHY used by the controller.bce%d: Failed to setup IRQ!β the driver could not initialize the IRQ handler.bce%d: Error: PHY read timeout!β the driver could not read a PHY register before the timeout period expired. tick tock, bestie β°bce%d: PHY write timeout!β the driver could not write to the PHY register because a timeout occurred.bce%d: Timeout error reading NVRAM at offset 0x%08X!β the driver could not write to NVRAM because a timeout occurred. (yes, the message says reading and the explain says write, that's literally what the page says, I don't make the rules π)
bce%d: Unknown Flash NVRAM found!β the driver does not recognize the NVRAM device being used and therefore cannot access it correctly.bce%d: Invalid NVRAM magic value!β the driver cannot read NVRAM, or the NVRAM is corrupt.bce%d: Invalid Manufacturing Information NVRAM CRC!β the driver cannot read NVRAM, or the NVRAM is corrupt.bce%d: Invalid Feature Configuration Information NVRAM CRC!β the driver cannot read NVRAM, or the NVRAM is corrupt.bce%d: DMA mapping error!β the driver was unable to map memory into DMA addressable space required by the controller.
ok now we're in the DMA tag saga. It's long. It's fine. It's giving structured, methodical, obsessed with details and honestly? respect π
bce%d: Could not allocate parent DMA tag!β the driver could not allocate a PCI compatible DMA tag.bce%d: Could not allocate status block DMA tag!β the driver could not allocate a DMA tag for the controller's status block.bce%d: Could not allocate status block DMA memory!β the driver could not allocate DMA addressable memory for the controller's status block.bce%d: Could not map status block DMA memory!β the driver could not map the status block memory into the controller's DMA address space.bce%d: Could not allocate statistics block DMA tag!β the driver could not allocate a DMA tag for the controller's statistics block.bce%d: Could not allocate statistics block DMA memory!β the driver could not allocate DMA addressable memory for the controller's statistics block.bce%d: Could not map statistics block DMA memory!β the driver could not map the statistics block memory into the controller's DMA address space.bce%d: Could not allocate TX descriptor chain DMA tag!β the driver could not allocate a DMA tag for the controller's TX chain.bce%d: Could not allocate TX descriptor chain DMA memory!β the driver could not allocate DMA addressable memory for the controller's TX chain.bce%d: Could not map TX descriptor chain DMA memory!β the driver could not map the TX descriptor chain memory into the controller's DMA address space.bce%d: Could not allocate TX mbuf DMA tag!β the driver could not allocate a DMA tag for the controller's TX mbuf memory.bce%d: Unable to create TX mbuf DMA map!β the driver could not map the TX mbuf memory into the controller's DMA address space.bce%d: Could not allocate RX descriptor chain DMA tag!β the driver could not allocate a DMA tag for the controller's RX chain.bce%d: Could not allocate RX descriptor chainβ the driver could not allocate DMA addressable memory for the controller's RX chain. (yes that one really does just stop like that mid-sentence, iconic honestly π)bce%d: Could not map RX descriptor chain DMA memory!β the driver could not map the RX descriptor chain memory into the controller's DMA address space.bce%d: Could not allocate RX mbuf DMA tag!β the driver could not allocate a DMA tag for the controller's RX mbuf memory.bce%d: Unable to create RX mbuf DMA map!β the driver could not map the RX mbuf memory into the controller's DMA address space.
bce%d: Firmware synchronization timeout!β the driver was not able to synchronize with the firmware running on the controller. The firmware may be stopped or hung. ghosted by the firmware fr π»bce%d: Invalid Ethernet address!β the driver was not able to read a valid Ethernet MAC address from NVRAM.bce%d: Reset failed!β fatal initialization error has been encountered.bce%d: Byte swap is incorrect!β fatal initialization error. Contact the author with details of the CPU architecture and system chipset in use. This one's a tell-someone situation, not a suffer-in-silence situation π«Άbce%d: Firmware did not complete initialization!β fatal initialization error.bce%d: Bootcode not running!β fatal initialization error.bce%d: Error mapping mbuf into RX chain!β the driver could not map a RX mbuf into DMA addressable memory.bce%d: Error filling RX chain: rx_bd[0x%04X]!β the driver was unable to allocate enough mbufs to fill the RX chain during initialization. Try increasing the number of mbufs available in the system, increase system memory, or if using jumbo frames, make sure enough 9KB mbufs are available.bce%d: Failed to allocate new mbuf, incoming frame dropped!β the driver was unable to allocate a new mbuf for the RX chain and reused the mbuf for the received frame, dropping the incoming frame in the process. Try increasing the number of mbufs available in the system or increase system memory. that frame? gone. dropped. deceased. πbce%d: Controller reset failed!β a fatal initialization error has occurred.bce%d: Controller initialization failed!β a fatal initialization error has occurred.bce%d: Block initialization failed!β a fatal initialization error has occurred.bce%d: Error mapping mbuf into TX chain!β the driver could not map a TX mbuf into DMA addressable memory.bce%d: Error registering poll function!β the driver received an error while attempting to register the poll function.
bce%d: Changing VLAN_MTU not supported.β changing the VLAN MTU is not currently supported by the driver.bce%d: Cannot change VLAN_HWTAGGING while management firmware (ASF/IPMI/UMP) is running!β management firmware to support ASF/IPMI/UMP requires that VLAN tag stripping be enabled in the controller.bce%d: Changing VLAN_HWTAGGING not supported!β disabling VLAN tag stripping is not currently supported by the driver.bce%d: Watchdog timeout occurred, resetting!β the device has stopped responding to the network, there is a problem with the cable connection, or a driver logic problem has occurred. cable check first bestie, it's always the cable πbce%d: Fatal attention detected: 0x%08X!β a controller hardware failure has occurred. If the problem continues, replace the controller. not a vibe. not fixable with vibes either. π
π«Ά SUPPORT π«Ά
Got a support question? Please contact your QLogic approved reseller, or QLogic Technical Support at http://support.qlogic.com, or by E-mail at β¨support@qlogic.comβ©. They're the ones who actually know things, go ask them β¨
π SEE ALSO π
altq(4), arp(4), miibus(4), netintro(4), ng_ether(4), vlan(4), ifconfig(8)
go read those too, they're the supporting cast and they ate π
πΈ HISTORY πΈ
The bce device driver first appeared in FreeBSD 6.1. a whole era β¨
π AUTHORS π
The bce driver was written by David Christensen β¨davidch@broadcom.comβ©. king behavior, thank you for your service π«‘π
and that's a wrap on the whole page, bestie!! this one came from the Debian peeps, dated June 4, 2012, and it lives under the name BCE(4). go forth, read your dmesg, and know exactly what the drama means π
π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2006-2014 QLogic Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms