bge hardware vlan

Gennady Proskurin gpr at nvnpp.vrn.ru
Thu Apr 7 23:03:23 PDT 2005


Does anyone have bge(4) network card with working hardware vlan support?
I have one, and it works with vlans only with the following patch.  This
is fresh FreeBSD-6-CURRENT, HP workstation xw4100, built-in network
card.

--- /usr/src/sys/dev/bge/if_bge.c	Fri Mar 18 09:14:18 2005
+++ if_bge.c	Fri Apr  8 09:38:52 2005
@@ -2393,7 +2393,7 @@
 	IFQ_SET_READY(&ifp->if_snd);
 	ifp->if_hwassist = BGE_CSUM_FEATURES;
 	/* NB: the code for RX csum offload is disabled for now */
-	ifp->if_capabilities = IFCAP_TXCSUM | IFCAP_VLAN_HWTAGGING |
+	ifp->if_capabilities = IFCAP_TXCSUM |
 	    IFCAP_VLAN_MTU;
 	ifp->if_capenable = ifp->if_capabilities;
 

pci5: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5782 Gigabit Ethernet, ASIC rev. 0x3003> mem 0xf8400000-0xf840ffff irq 17 at device 2.0 on pci5
miibus0: <MII bus> on bge0
brgphy0: <BCM5705 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:30:6e:b1:e7:d3


-- 
Gennady


More information about the freebsd-net mailing list