From owner-freebsd-current@FreeBSD.ORG Fri Aug 1 11:42:47 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7315637B407 for ; Fri, 1 Aug 2003 11:42:47 -0700 (PDT) Received: from mail06.svc.cra.dublin.eircom.net (mail06.svc.cra.dublin.eircom.net [159.134.118.22]) by mx1.FreeBSD.org (Postfix) with SMTP id A61D143F3F for ; Fri, 1 Aug 2003 11:42:45 -0700 (PDT) (envelope-from pmedwards@eircom.net) Received: (qmail 65092 messnum 333771 invoked from network[159.134.237.83/webmail02.eircom.net]); 1 Aug 2003 18:42:44 -0000 Received: from webmail02.eircom.net (HELO webmail.eircom.net) (159.134.237.83) by mail06.svc.cra.dublin.eircom.net (qp 65092) with SMTP; 1 Aug 2003 18:42:44 -0000 From: "Peter Edwards" To: John Polstra , current@freebsd.org, boris@tagnet.ru Date: Fri, 1 Aug 2003 19:42:44 +0100 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-------AEMYIZA0GMFDTLRQC8PEMUGY" Content-Transfer-Encoding: 8bit X-Originating-IP: 62.17.151.61 X-Mailer: Eircom Net CRC Webmail (http://www.eircom.net/) Organization: Eircom Net (http://www.eircom.net/) Message-Id: <20030801184245.A61D143F3F@mx1.FreeBSD.org> cc: pmedwards@eircom.net Subject: Re: bge & vlan stranges X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 18:42:47 -0000 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--