Module Name: src Committed By: tnn Date: Fri Jun 12 11:54:39 UTC 2015
Modified Files: src/sys/dev/ic: dwc_gmac.c Log Message: Supports ETHERCAP_VLAN_MTU. ok martin@ PR#49967 To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/dev/ic/dwc_gmac.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/dwc_gmac.c diff -u src/sys/dev/ic/dwc_gmac.c:1.32 src/sys/dev/ic/dwc_gmac.c:1.33 --- src/sys/dev/ic/dwc_gmac.c:1.32 Mon Feb 23 19:05:17 2015 +++ src/sys/dev/ic/dwc_gmac.c Fri Jun 12 11:54:39 2015 @@ -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 @@ dwc_gmac_attach(struct dwc_gmac_softc *s } /* + * We can support 802.1Q VLAN-sized frames. + */ + sc->sc_ec.ec_capabilities |= ETHERCAP_VLAN_MTU; + + /* * Ready, attach interface */ if_attach(ifp);