Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi report VLAN MTU capability



details:   https://anonhg.NetBSD.org/src/rev/6ddf87d880d0
branches:  trunk
changeset: 828164:6ddf87d880d0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Nov 30 18:29:25 2017 +0000

description:
report VLAN MTU capability

diffstat:

 sys/arch/arm/sunxi/sun4i_emac.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r ae7559461767 -r 6ddf87d880d0 sys/arch/arm/sunxi/sun4i_emac.c
--- a/sys/arch/arm/sunxi/sun4i_emac.c   Thu Nov 30 16:00:48 2017 +0000
+++ b/sys/arch/arm/sunxi/sun4i_emac.c   Thu Nov 30 18:29:25 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun4i_emac.c,v 1.1 2017/10/20 22:29:15 jmcneill Exp $ */
+/* $NetBSD: sun4i_emac.c,v 1.2 2017/11/30 18:29:25 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2013-2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sun4i_emac.c,v 1.1 2017/10/20 22:29:15 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun4i_emac.c,v 1.2 2017/11/30 18:29:25 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -346,6 +346,9 @@
        ifp->if_watchdog = sun4i_emac_ifwatchdog;
        IFQ_SET_READY(&ifp->if_snd);
 
+       /* 802.1Q VLAN-sized frames are supported */
+       sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_MTU;
+
        ifmedia_init(&mii->mii_media, 0, ether_mediachange, ether_mediastatus);
 
         mii->mii_ifp = ifp;



Home | Main Index | Thread Index | Old Index