VGE(4)
VGE(4) π
okay bestie, so this is the manual page for vge β the VIA Networking Technologies Velocity Gigabit Ethernet adapter driver. it lives in the Kernel Interfaces Manual section of the FreeBSD-adjacent universe and honestly? it's giving "solid little driver that just works". let's get into it π¦
β¨ NAME β¨
vge β the driver for VIA Networking Technologies Velocity Gigabit Ethernet adapters. that's the whole vibe. π
β¨ SYNOPSIS β¨
so like, you got two ways to get this driver living in your life, and it depends on the ~vibe~ you're going for.
Option A: bake it into the kernel. put these lines in your kernel configuration file:
device miibus
device vge
Option B: load it as a module at boot time. drop this single line into loader.conf(5):
if_vge_load="YES"
and that's it. slay. β¨
β¨ DESCRIPTION β¨
okay so the vge driver is out here providing support for a whole bunch of NICs and embedded Ethernet interfaces, and they're all based on the VIA Technologies VT6120, VT6122, VT6130 and VT6132 Velocity Family Gigabit Ethernet controller chips. iconic family tbh. π
let's talk about the chips themselves, because the tea is genuinely interesting:
the VT6120/VT6122 is a 33/66MHz 64-bit PCI device, and it's combining a tri-speed MAC with an integrated 10/100/1000 copper PHY. (heads up: some older cards use an external PHY instead, no shade.) the VT6130/VT6132 is the PCI express version of the Velocity family β glow up fr fr. π
and the MAC itself? she's doing THE MOST:
- TCP/IP hardware checksums (IPv4 only bestie, don't get it twisted)
- TCP large send
- VLAN tag insertion and stripping
- VLAN filtering
- a
64-entry CAM filterand a64-entry VLAN filter 64-bit multicast hash filter4 separate transmit DMA queues- flow control
- jumbo frames (not on VT6130/VT6132, more on that drama below) up to
16Kin size
and the Velocity family controllers have a 16K receive FIFO and a 48K transmit FIFO. buffered. hydrated. not dehydrated. π
so what does the driver actually use out of all that? the vge driver takes advantage of the controller's checksum offload and VLAN tagging features, plus the jumbo frame support (except on VT6130/VT6132, again, we'll get there) and the CAM filter support. the CAM filter is what does the multicast address filtering, giving you 64 perfect multicast address filter support. and if your interface needs to join more than 64 multicast groups, the driver just switches over to using the hash filter. adaptive queen. π§
jumbo frames time. you enable them by setting the interface MTU to anything bigger than the default of 1500 bytes, up to a max of 9000 bytes. BUT β and this is the important part β jumbo frames are disabled on the VT6130/VT6132 controllers, because the TX MAC will literally hang when it tries to send a frame larger than 4K. not a vibe. not at all. π
receive and transmit checksum offload can be toggled on and off using the ifconfig(8) utility. you're in control, main character. π
media types π
the vge driver supports these media types:
autoselectβ enable autoselection of the media type and options. you can manually override the autoselected mode by adding media options torc.conf(5). she picks for you but you can still be a little bossy about it.10baseT/UTPβ set10Mbpsoperation. theifconfig(8)mediaoptoption can also be used to select eitherfull-duplexorhalf-duplexmodes.100baseTXβ set100Mbps(Fast Ethernet) operation. theifconfig(8)mediaoptoption can also be used to select eitherfull-duplexorhalf-duplexmodes.1000baseTXβ set1000baseTXoperation over twisted pair. theifconfig(8)mediaoptoption can also be used to select eitherfull-duplexorhalf-duplexmodes.
media options πΈ
and these media options too:
full-duplexβ force full duplex operation.half-duplexβ force half duplex operation.
for more info on configuring this device, go check ifconfig(8). it's the plug. π«Ά
β¨ HARDWARE β¨
the vge driver supports VIA Networking VT6120, VT6122, VT6130 and VT6132 based Gigabit Ethernet adapters, including these baddies:
- VIA Networking LAN-on-motherboard Gigabit Ethernet
- ZyXEL GN650-T 64-bit PCI Gigabit Ethernet NIC (ZX1701)
- ZyXEL GN670-T 32-bit PCI Gigabit Ethernet NIC (ZX1702)
periodt. π
β¨ LOADER TUNABLES β¨
tunables can be set at the loader(8) prompt before booting the kernel, or stored in loader.conf(5). pick your fighter. β
hw.vge.msi_disableβ this tunable disables MSI support on the Ethernet hardware. the default value is0.
β¨ SYSCTL VARIABLES β¨
these following variables are available as both sysctl(8) variables and loader(8) tunables. double threat energy, we love to see it. π₯
dev.vge.%d.int_holdoffβ maximum number of time to delay interrupts. the valid range is0to5100in units of1us, and the default is150(150us). the resolution of the timer is about20us, so finer tuning than20uswouldn't be available β don't try to be more precise than the clock, bestie, it's not gonna work. also: the interface should be brought down and up again before a change takes effect. (ngl that's the "did you try turning it off and on again" of it all π)dev.vge.%d.rx_coal_pktβ maximum number of packets to fire Rx completion interrupt. the valid range is1to255, and the default is64.dev.vge.%d.tx_coal_pktβ maximum number of packets to fire Tx completion interrupt. the valid range is1to255, and the default is128.
β¨ DIAGNOSTICS β¨
okay so sometimes things go wrong and the kernel will tell you about it. here's the translation of the screaming: π
vge%d: couldn't map memoryβ a fatal initialization error has occurred. yeah. it's over. πvge%d: couldn't map portsβ a fatal initialization error has occurred.vge%d: couldn't map interruptβ a fatal initialization error has occurred.vge%d: failed to enable memory mapping!β the driver failed to initialize PCI shared memory mapping. this might happen if the card is not in a bus-master slot. check your slot, bestie, she needs the right seat. πvge%d: watchdog timeoutβ the device has stopped responding to the network, or there is a problem with the network connection (cable). could be the card, could literally just be the cable. check the cable first, i'm begging you. π
β¨ SEE ALSO β¨
go read these next, they're the supporting cast and they ate:
altq(4), arp(4), miibus(4), netintro(4), ng_ether(4), polling(4), vlan(4), ifconfig(8)
β¨ HISTORY β¨
the vge device driver first appeared in FreeBSD 5.3. vintage but still serving. π
β¨ AUTHORS β¨
the vge driver was written by Bill Paul <wpaul@windriver.com>. thank you Bill, absolute legend, we stan. π
so yeah, that's the whole page bestie. go forth, configure your NIC, and remember: it's the vge driver, from the Kernel Interfaces Manual, sourced from Debian, dated May 29, 2011. mwah, love you, bye πβ¨π¦
π¦ 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) 2004 Bill Paul <wpaul@windriver.com>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms