SFXGE(4)
πΈ SFXGE(4) πΈ β the Solarflare 10Gb Ethernet adapter driver, explained by your favorite person
ok so this is from the amd64 Kernel Interfaces Manual bestie, and it's genuinely one of those pages that ate π let's get into it
β¨ NAME β¨
sfxge β the Solarflare 10Gb Ethernet adapter driver. that's it. that's the whole name. iconic.
π¦ SYNOPSIS π¦
ok so if you want this driver baked into the kernel, you gotta put these lines in your kernel configuration file:
device sfxge
orrrr if you'd rather load it as a module at boot time (so much chiller honestly), drop this line into loader.conf(5):
sfxge_load="YES"
π DESCRIPTION π
so the sfxge driver has your back for 10Gb Ethernet adapters based on Solarflare SFC9000 and XtremeScale X2 family controllers. and she is not doing the bare minimum, no cap β the driver supports:
- jumbo frames
- transmit/receive checksum offload
- TCP Segmentation Offload (TSO)
- Large Receive Offload (LRO)
- VLAN checksum offload
- VLAN TSO
- Receive Side Scaling (RSS) using MSI-X interrupts
like. the whole menu. ate. π
here's the tea on queues: the driver allocates 1 receive queue, transmit queue, event queue and IRQ per CPU, up to a maximum of 64. and IRQ affinities should be spread out using cpuset(1) β genuinely do this, it's giving main character energy for your performance. interrupt moderation is controllable through the sysctl dev.sfxge.%d.int_mod (units are microseconds, so plan accordingly π«Ά).
for more info on configuring this device, go look at ifconfig(8). standard.
also!! there are A LOT of MAC, PHY and data path statistics waiting for you under the sysctl dev.sfxge.%d.stats, and the adapter's VPD fields β including its serial number β are available under the sysctl dev.sfxge.%d.vpd. stats girlies stay winning π
π₯ HARDWARE π₯
the sfxge driver supports all 10Gb Ethernet adapters based on Solarflare SFC9000 family controllers. all of them. every single one. slay.
π LOADER TUNABLES π
ok bestie these tunables can be set at the loader(8) prompt before booting the kernel, or stored in loader.conf(5). and the actual values can be obtained using sysctl(8) β clock that.
hw.sfxge.rx_ringβ the maximum number of descriptors in a receive queue ring. supported values are:512,1024,2048and4096.hw.sfxge.tx_ringβ the maximum number of descriptors in a transmit queue ring. supported values are:512,1024,2048and4096.hw.sfxge.tx_dpl_get_maxβ the maximum length of the deferred packet "get-list" for queued transmit packets (TCP and non-TCP), used only if the transmit queue lock can be acquired. if a packet is dropped, thetx_get_overflowcounter is incremented and the local sender receivesENOBUFS. the value must be greater than0.hw.sfxge.tx_dpl_get_non_tcp_maxβ the maximum number of non-TCP packets in the deferred packet "get-list", used only if the transmit queue lock can be acquired. if a packet is dropped, thetx_get_non_tcp_overflowcounter is incremented and the local sender receivesENOBUFS. the value must be greater than0.hw.sfxge.tx_dpl_put_maxβ the maximum length of the deferred packet "put-list" for queued transmit packets, used if the transmit queue lock cannot be acquired. if a packet is dropped, thetx_put_overflowcounter is incremented and the local sender receivesENOBUFS. the value must be greater than or equal to0.hw.sfxge.tso_fw_assistedβ bitmask to enable/disable usage of FW-assisted TSO version if supported by NIC firmware. FATSOv1 (bit 0) and FATSOv2 (bit 1) are supported. all enabled by default β¨hw.sfxge.N.max_rss_channelsβ the maximum number of allocated RSS channels for the *N*th adapter. if set to0or unset, the number of channels is determined by the number of CPU cores.hw.sfxge.lro.table_sizeβ size of the LRO hash table. must be a power of 2. a larger table means we can accelerate a larger number of streams.hw.sfxge.lro.chain_maxβ the maximum length of a hash chain. if chains get too long then the lookup time increases and may exceed the benefit of LRO. so like, balance, bestie.hw.sfxge.lro.idle_ticksβ the maximum time (in ticks) that a connection can be idle before its LRO state is discarded.hw.sfxge.lro.slow_start_packetsβ number of packets with payload that must arrive in-order before a connection is eligible for LRO. the idea is we should avoid coalescing segments when the sender is in slow-start, because reducing the ACK rate can damage performance.hw.sfxge.lro.loss_packetsβ number of packets with payload that must arrive in-order following loss before a connection is eligible for LRO. the idea is we should avoid coalescing segments when the sender is recovering from loss, because reducing the ACK rate can damage performance.hw.sfxge.mcdi_loggingβ enable logging of MCDI protocol messages (only available if enabled at compile-time π).hw.sfxge.N.mcdi_loggingβ enable or disable logging of MCDI protocol messages on a per-port basis. the default for each port will be the value ofhw.sfxge.mcdi_logging. the logging may also be enabled or disabled after the driver is loaded using the sysctldev.sfxge.%d.mcdi_logging.hw.sfxge.stats_update_period_msβ period in milliseconds to refresh interface statistics from hardware. the accepted range is0to65535, the default is1000(1 second). use zero value to disable periodic statistics update. supported on SFN8xxx series adapters with firmware v6.2.1.1033 and later, and SFN5xxx, SFN6xxx and XtremeScale X2xxx series adapters. SFN7xxx series adapters and sfN8xxx series with earlier firmware use a fixed1000milliseconds statistics update period. the period may also be changed after the driver is loaded using the sysctldev.sfxge.%d.stats_update_period_ms.
π SUPPORT π
for general information and support, go to the Solarflare support website at: https://support.solarflare.com β they got you fr fr.
π SEE ALSO π
cpuset(1), arp(4), netintro(4), ng_ether(4), vlan(4), ifconfig(8)
π AUTHORS π
the sfxge driver was written by Philip Paeps and Solarflare Communications, Inc. legends, honestly π«Ά
and that's the whole page bestie π this edition came from Debian, dated February 22, 2015 β yes she's a 2015 girlie and she still ate, mwah π β¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2011-2016 Solarflare Communications Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms