BCE(4)
π bce(4) β the QLogic NetXtreme II bestie π
okay so this is the man page for bce, bestie β it's the driver for the QLogic NetXtreme II family of PCI/PCIe Gigabit Ethernet adapters, and yes that includes the BCM5706, BCM5708, BCM5709 and BCM5716. she's a networking icon and she's about to explain herself π
β¨ NAME β¨
bce β QLogic NetXtreme II (BCM5706/5708/5709/5716) PCI/PCIe Gigabit Ethernet adapter driver
π¦ SYNOPSIS π¦
so if you wanna compile this driver into the kernel (main character energy, no modules), you drop these lines into your kernel configuration file:
device miibus
device bce
OR, alternative route, if you'd rather load her as a module at boot time, you put this line in loader.conf(5):
if_bce_load="YES"
both are valid, pick your vibe, you can't go wrong π«Ά
πΈ DESCRIPTION πΈ
the bce driver supports QLogic's NetXtreme II product family, which includes the BCM5706, BCM5708, BCM5709 and BCM5716 Ethernet controllers. literally the whole squad π
okay so context: the NetXtreme II product family is composed of various Converged NIC (or CNIC) Ethernet controllers. these things support a TCP Offload Engine (TOE), Remote DMA (RDMA), and iSCSI acceleration, in addition to standard L2 Ethernet traffic β all on the same controller. she does it all, no cap π
here's the feature list that bce actually supports 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
and here are the media types bce supports β the whole lineup, no skips:
autoselectβ enable autoselection of the media type and options. and if you're feeling controlling, the user can manually override the autoselected mode by adding media options torc.conf(5). she'll let you, she's chill like that β¨10baseT/UTPβ set 10Mbps operation. theifconfig(8)mediaoptoption can also be used to select either full-duplex or half-duplex modes. tiny but mighty π100baseTXβ set 100Mbps (Fast Ethernet) operation. theifconfig(8)mediaoptoption can also be used to select either full-duplex or half-duplex modes. fast-ish, still cute π1000baseSXβ sets 1000Mbps operation. only full-duplex mode is supported at this speed. ok so no half-duplex here, that's just the rules π1000baseTβ set 1000baseT operation over twisted pair. only full-duplex mode is supported. same deal, full-duplex only, she said what she said π₯2500BaseSXβ set 2500Mbps operation. only full-duplex mode is supported. (yes the capitalBis on purpose, don't come for her π)
and these are the media options bce supports:
full-duplexβ force full duplex operation. she's listening and talking, periodt π«Άhalf-duplexβ force half duplex operation. one at a time bestie, we're taking turns β
for more information on configuring this device, see ifconfig(8). that's your bestie for all the config stuff, iykyk π
π₯ HARDWARE π₯
the bce driver provides support for various NICs based on the QLogic NetXtreme II family of Gigabit Ethernet controllers, including the following β and i'm listing every single one because they all ate:
- 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
likeβ¦ that's a lot of hardware and every one of them is valid π
π SYSCTL VARIABLES π
okay these next ones are tunable β the following variables are available as both sysctl(8) variables and loader(8) tunables. so you can poke them at runtime or set them before boot, whichever fits your situation. obsessed πΈ
hw.bce.verboseβ enable/disable verbose logging and output to the console. useful for debugging (default0). basically the "tell me everything" switch πhw.bce.msi_enableβ enable/disable MSI support (default1). interrupts but fancy β¨hw.bce.tso_enableβ enable/disable TSO support (default1). offload queen πhw.bce.strict_rx_mtuβ enable/disable strict RX frame size checking (default0). she's checking πhw.bce.hdr_splitβ enable/disable frame header/payload splitting (default1). split it, slay it π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). don't try to be creative here bestie, the alignment said no π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). same rules, same energy π¦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). so if you zero one, don't zero the other, ok? π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). yes she says the range twice, she's thorough π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). it's giving mutual dependency π«Ά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). (yes "duing" β that's the original's spelling, not mine, don't @ me π)hw.bce.tx_ticksβ time in microsecond ticks to wait before a status block update is generated due to TX activity. values from0-100are valid. a value of0disables this status block update. β οΈ cannot be set to0ifhw.bce.tx_quick_cons_tripis also0(default80). same buddy-system rule as RX β¨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). transmission ticking, but make it interrupt-y π₯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). she keeps her promises, and she keeps her dependencies π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). last one of this batch and she ate β
π DIAGNOSTICS π
okay bestie, buckle up β this is the part where the driver tells you what went wrong. every one of these starts with bce%d: where the number is the interface unit, so you know exactly which card is being dramatic. some of these are "lol just a timeout" and some are straight-up fatal initialization errors where the whole thing just gave up. read carefully, no skipping π
bce%d: PCI memory allocation failed!β the driver hit a fatal initialization error. it's giving "couldn't even get out of bed."bce%d: PCI map interrupt failed!β another fatal initialization error, this time about interrupts. also not slay.bce%d: Unsupported controller revision (%c%d)β the driver literally does not support the revision of the controller you've got. wrong era, wrong vibe, incompatible.bce%d: Controller initialization failed!β fatal initialization error, full stop. it tried, it really did.bce%d: NVRAM test failed!β couldn't access the controller's NVRAM properly. NVRAM said "no β€οΈ".bce%d: DMA resource allocation failed!β couldn't allocate DMA memory to set up the controller's host memory data structures. the plumbing didn't get installed.bce%d: Interface allocation failed!β the driver could not create a network interface for the controller. no interface for you πbce%d: PHY probe failed!β couldn't access the PHY that the controller uses.bce%d: Failed to setup IRQ!β couldn't initialize the IRQ handler.bce%d: Error: PHY read timeout!β couldn't read a PHY register before the timeout period expired. clock ran out.bce%d: PHY write timeout!β couldn't write to the PHY register because a timeout occurred.bce%d: Timeout error reading NVRAM at offset 0x%08X!β per the docs, the driver could not write to NVRAM because a timeout occurred. yes it says "reading" in the message and "write" in the description, we're just reporting what it says, don't come for me π«Άbce%d: Unknown Flash NVRAM found!β the driver doesn't recognize the NVRAM device being used, which means it can't access it correctly. mystery hardware, main character energy.bce%d: Invalid NVRAM magic value!β the driver can't read NVRAM, or the NVRAM is corrupt. either way: bad.bce%d: Invalid Manufacturing Information NVRAM CRC!β same deal: can't read NVRAM, or it's corrupt.bce%d: Invalid Feature Configuration Information NVRAM CRC!β again: can't read NVRAM, or it's corrupt.bce%d: DMA mapping error!β couldn't map memory into the DMA addressable space the controller needs.bce%d: Could not allocate parent DMA tag!β couldn't allocate a PCI compatible DMA tag.bce%d: Could not allocate status block DMA tag!β couldn't allocate a DMA tag for the controller's status block.bce%d: Could not allocate status block DMA memory!β couldn't get DMA addressable memory for the controller's status block.bce%d: Could not map status block DMA memory!β couldn't map the status block memory into the controller's DMA address space.bce%d: Could not allocate statistics block DMA tag!β couldn't allocate a DMA tag for the controller's statistics block.bce%d: Could not allocate statistics block DMA memory!β couldn't get DMA addressable memory for the statistics block.bce%d: Could not map statistics block DMA memory!β couldn't map the statistics block memory into the controller's DMA address space.bce%d: Could not allocate TX descriptor chain DMA tag!β couldn't allocate a DMA tag for the controller's TX chain. transmit side is struggling.bce%d: Could not allocate TX descriptor chain DMA memory!β couldn't get DMA addressable memory for the TX chain.bce%d: Could not map TX descriptor chain DMA memory!β couldn't map the TX descriptor chain memory into the controller's DMA address space.bce%d: Could not allocate TX mbuf DMA tag!β couldn't allocate a DMA tag for the controller's TX mbuf memory.bce%d: Unable to create TX mbuf DMA map!β couldn't map the TX mbuf memory into the controller's DMA address space.bce%d: Could not allocate RX descriptor chain DMA tag!β couldn't allocate a DMA tag for the controller's RX chain. now the receive side wants attention too.bce%d: Could not allocate RX descriptor chainβ couldn't allocate DMA addressable memory for the controller's RX chain. (and yeah, that message just ends there. no exclamation mark, no nothing. iconic, honestly.)bce%d: Could not map RX descriptor chain DMA memory!β couldn't map the RX descriptor chain memory into the controller's DMA address space.bce%d: Could not allocate RX mbuf DMA tag!β couldn't allocate a DMA tag for the controller's RX mbuf memory.bce%d: Unable to create RX mbuf DMA map!β couldn't map the RX mbuf memory into the controller's DMA address space.bce%d: Firmware synchronization timeout!β couldn't sync with the firmware running on the controller. the firmware may be stopped or hung πbce%d: Invalid Ethernet address!β couldn't read a valid Ethernet MAC address from NVRAM.bce%d: Reset failed!β fatal initialization error. the reset did not reset.bce%d: Byte swap is incorrect!β fatal initialization error, and this one's special: you're supposed to contact the author with details of the CPU architecture and system chipset in use. yes really, go tell them π«‘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!β couldn't map an RX mbuf into DMA addressable memory.bce%d: Error filling RX chain: rx_bd[0x%04X]!β couldn't allocate enough mbufs to fill the RX chain during initialization. the official advice: try increasing the number of mbufs available in the system, increase system memory, or β if you're using jumbo frames β make sure enough 9KB mbufs are available. πbce%d: Failed to allocate new mbuf, incoming frame dropped!β couldn't grab a new mbuf for the RX chain, so it reused the mbuf from the received frame and dropped that incoming frame in the process. try increasing the number of mbufs available in the system or increase system memory.bce%d: Controller reset failed!β a fatal initialization error has occurred.bce%d: Controller initialization failed!β a fatal initialization error has occurred. (yes, it shows up twice in the list with different wording. we don't question the classics.)bce%d: Block initialization failed!β a fatal initialization error has occurred.bce%d: Error mapping mbuf into TX chain!β couldn't map a TX mbuf into DMA addressable memory.bce%d: Error registering poll function!β the driver got an error while trying to register the poll function.bce%d: Changing VLAN_MTU not supported.β changing the VLAN MTU is not currently supported by the driver. no cap, it's just not a thing yet.bce%d: Cannot change VLAN_HWTAGGING while management firmware (ASF/IPMI/UMP) is running!β management firmware for ASF/IPMI/UMP requires that VLAN tag stripping be enabled in the controller. so you can't turn it off while that's running, bestie.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 stopped responding to the network, there's a problem with the cable connection, or a driver logic problem happened. could be any of the three, go check your cable first π§bce%d: Fatal attention detected: 0x%08X!β a controller hardware failure has occurred. if the problem keeps happening, replace the controller. respectfully, it's cooked.
π«Ά SUPPORT π«Ά
got questions? hit up your QLogic approved reseller, or QLogic Technical Support at http://support.qlogic.com, or slide into their inbox at support@qlogic.com. they're literally there for this π
π SEE ALSO π
altq(4), arp(4), miibus(4), netintro(4), ng_ether(4), vlan(4), ifconfig(8)
the friend group! go read them, iykyk β¨
π¦ HISTORY π¦
the bce device driver first appeared in FreeBSD 6.1. a vintage icon, honestly. a little retro, still serving π
π AUTHORS π
the bce driver was written by David Christensen <davidch@broadcom.com>. thank you for your service, king π
and that's the whole page, bestie! this one came from the Debian crew, dated June 4, 2012 β so yeah, it's a lil vintage, but the facts still eat. go forth and ifconfig responsibly πΈπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2006-2014 QLogic Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms