Date: Fri, 1 Aug 2003 19:42:44 +0100 From: "Peter Edwards" <pmedwards@eircom.net> To: John Polstra <jdp@polstra.com>, current@freebsd.org, boris@tagnet.ru Cc: pmedwards@eircom.net Subject: Re: bge & vlan stranges Message-ID: <20030801184245.A61D143F3F@mx1.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ---------AEMYIZA0GMFDTLRQC8PEMUGY Content-Type: text/plain Content-Transfer-Encoding: 7bit Ok. After all that, and given I've gone this far... Boris, does the patch included fix your problem? -- Peter Edwards. ---------AEMYIZA0GMFDTLRQC8PEMUGY Content-Type: text/plain Content-Disposition: attachment; filename="patch.txt" 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]; ---------AEMYIZA0GMFDTLRQC8PEMUGY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030801184245.A61D143F3F>