Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 09:51:20 +0300
From:      Valentin Nechayev <netch@iv.nn.kiev.ua>
To:        Mike Tancsa <mike@sentex.net>
Cc:        jlemon@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: media types on the 815E and VLANs
Message-ID:  <20010515095120.A2230@iv.nn.kiev.ua>
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
References:  <4.2.2.20010515003707.01728c80@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010515095120.A2230>