From owner-freebsd-stable Tue May 15 14:19:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id ED04237B42C; Tue, 15 May 2001 14:19:24 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id AHJ38916; Wed, 16 May 2001 00:19:07 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4F6pK402340; Tue, 15 May 2001 09:51:20 +0300 (EEST) (envelope-from netch) Date: Tue, 15 May 2001 09:51:20 +0300 From: Valentin Nechayev To: Mike Tancsa Cc: jlemon@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Re: media types on the 815E and VLANs Message-ID: <20010515095120.A2230@iv.nn.kiev.ua> References: <4.2.2.20010515003707.01728c80@192.168.0.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4.2.2.20010515003707.01728c80@192.168.0.12>; from mike@sentex.net on Tue, May 15, 2001 at 01:06:44AM -0400 X-42: On Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tue, May 15, 2001 at 01:06:44, mike (Mike Tancsa) wrote about "media types on the 815E and VLANs": > OK, the VLANs are working, but not with the MTU size of 1500. With your > mods, do I need to poke the card in some special way ? There were some patches posted to -net which allows such. One working for us follows (but it is for old fxp driver, without miibus). Thx2 vova@express.ru & vovik@lucky.net. === cut === --- pci/if_fxp.c.orig Sat Nov 4 23:35:06 2000 +++ pci/if_fxp.c Sun Nov 5 00:11:58 2000 @@ -1277,8 +1277,17 @@ sizeof(struct ether_header)) { m_freem(m); goto rcvloop; } + /* + * Drop the packet if it has CRC + * errors. + */ + if (rfa->rfa_status & FXP_RFA_STATUS_CRC) { + m_freem(m); + goto rcvloop; + } + m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = total_len; eh = mtod(m, struct ether_header *); m->m_data += @@ -1557,9 +1566,9 @@ cbp->dma_bce = 0; /* (disable) dma max counters */ cbp->late_scb = 0; /* (don't) defer SCB update */ cbp->tno_int = 0; /* (disable) tx not okay interrupt */ cbp->ci_int = 1; /* interrupt on CU idle */ - cbp->save_bf = prm; /* save bad frames */ + cbp->save_bf = 1; /* always save bad frames XXX */ cbp->disc_short_rx = !prm; /* discard short packets */ cbp->underrun_retry = 1; /* retry mode (1) on DMA underrun */ cbp->mediatype = !sc->phy_10Mbps_only; /* interface mode */ cbp->nsai = 1; /* (don't) disable source addr insert */ === end cut === /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message