Subject: dp8390.c & ETHERCAP_VLAN_MTU
To: None <tech-kern@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 10/15/2000 14:06:11
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii

Hi,
from tests I ran on both a:
ne0 at pci1 dev 3 function 0: NetVin 5000 Ethernet
and:
we1: WD8013EBT Ethernet (16-bit)

network cards using dp8390.c can support 1522 byte MTU, without further
modifications. Can someone familiar with these chips confirm this ?

--
Manuel Bouyer <bouyer@antioche.eu.org>
--

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: dp8390.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/dp8390.c,v
retrieving revision 1.38
diff -u -r1.38 dp8390.c
--- dp8390.c	2000/10/01 23:32:41	1.38
+++ dp8390.c	2000/10/15 11:58:56
@@ -144,6 +144,11 @@
 		ifmedia_set(&sc->sc_media, IFM_ETHER|IFM_MANUAL);
 	}
 
+	/*
+	 * We can support 802.1Q VLAN-sized frames.
+	 */
+	sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_MTU;
+
 	/* Attach the interface. */
 	if_attach(ifp);
 	ether_ifattach(ifp, sc->sc_enaddr);

--huq684BweRXVnRxX--