bge & vlan stranges

Peter Edwards pmedwards at eircom.net
Fri Aug 1 11:42:47 PDT 2003


Ok. After all that, and given I've gone this far...
Boris, does the patch included fix your problem?
-- 
Peter Edwards.
-------------- next part --------------
Index: sys/dev/bge/if_bge.c
===================================================================
RCS file: /pub/FreeBSD/development/FreeBSD-CVS/src/sys/dev/bge/if_bge.c,v
retrieving revision 1.46
diff -u -r1.46 if_bge.c
--- sys/dev/bge/if_bge.c	25 Jul 2003 20:33:43 -0000	1.46
+++ sys/dev/bge/if_bge.c	1 Aug 2003 18:33:56 -0000
@@ -2356,6 +2356,7 @@
 	ifp->if_watchdog = bge_watchdog;
 	ifp->if_init = bge_init;
 	ifp->if_mtu = ETHERMTU;
+	ifp->if_hdrlen = sizeof(struct ether_vlan_header);
 	ifp->if_snd.ifq_maxlen = BGE_TX_RING_CNT - 1;
 	ifp->if_hwassist = BGE_CSUM_FEATURES;
 	ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |
@@ -3181,8 +3182,8 @@
 	ifp = &sc->arpcom.ac_if;
 
 	/* Specify MTU. */
-	CSR_WRITE_4(sc, BGE_RX_MTU, ifp->if_mtu +
-	    ETHER_HDR_LEN + ETHER_CRC_LEN);
+	CSR_WRITE_4(sc, BGE_RX_MTU, ifp->if_mtu + ifp->if_hdrlen +
+	    ETHER_CRC_LEN);
 
 	/* Load our MAC address. */
 	m = (u_int16_t *)&sc->arpcom.ac_enaddr[0];


More information about the freebsd-current mailing list