Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/pci Pull up revision 1.57 (requested by bouyer ...



details:   https://anonhg.NetBSD.org/src/rev/c524e0bd147c
branches:  netbsd-1-6
changeset: 530478:c524e0bd147c
user:      grant <grant%NetBSD.org@localhost>
date:      Mon Jun 30 02:47:21 2003 +0000

description:
Pull up revision 1.57 (requested by bouyer in ticket #1350):

tl(4) supports ETHERCAP_VLAN_MTU.

diffstat:

 sys/dev/pci/if_tl.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 03ea14480fb7 -r c524e0bd147c sys/dev/pci/if_tl.c
--- a/sys/dev/pci/if_tl.c       Mon Jun 30 02:45:35 2003 +0000
+++ b/sys/dev/pci/if_tl.c       Mon Jun 30 02:47:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tl.c,v 1.52 2002/04/17 09:16:27 wiz Exp $   */
+/*     $NetBSD: if_tl.c,v 1.52.4.1 2003/06/30 02:47:21 grant Exp $     */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.52 2002/04/17 09:16:27 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tl.c,v 1.52.4.1 2003/06/30 02:47:21 grant Exp $");
 
 #undef TLDEBUG
 #define TL_PRIV_STATS
@@ -443,6 +443,11 @@
        } else
                ifmedia_set(&sc->tl_mii.mii_media, IFM_ETHER|IFM_AUTO);
 
+       /* 
+        * We can support 802.1Q VLAN-sized frames.
+        */
+       sc->tl_ec.ec_capabilities |= ETHERCAP_VLAN_MTU;
+
        strcpy(ifp->if_xname, sc->sc_dev.dv_xname);
        ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_NOTRAILERS|IFF_MULTICAST;
        ifp->if_ioctl = tl_ifioctl;



Home | Main Index | Thread Index | Old Index