Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Supports ETHERCAP_VLAN_MTU. ok martin@ PR#49967



details:   https://anonhg.NetBSD.org/src/rev/6a4db4150df0
branches:  trunk
changeset: 338858:6a4db4150df0
user:      tnn <tnn%NetBSD.org@localhost>
date:      Fri Jun 12 11:54:39 2015 +0000

description:
Supports ETHERCAP_VLAN_MTU. ok martin@ PR#49967

diffstat:

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

diffs (30 lines):

diff -r b5ec79510e7c -r 6a4db4150df0 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Fri Jun 12 09:43:05 2015 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Fri Jun 12 11:54:39 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.32 2015/02/23 19:05:17 martin Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.33 2015/06/12 11:54:39 tnn Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.32 2015/02/23 19:05:17 martin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.33 2015/06/12 11:54:39 tnn Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -238,6 +238,11 @@
         }
 
        /*
+        * We can support 802.1Q VLAN-sized frames.
+        */
+       sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_MTU;
+
+       /*
         * Ready, attach interface
         */
        if_attach(ifp);



Home | Main Index | Thread Index | Old Index