Mon Nov 27 14:09:11 2017 UTC ()
Pull up following revision(s) (requested by jmcneill in ticket #397):
	sys/arch/mips/cavium/dev/if_cnmac.c: revision 1.7
Set ETHERCAP_VLAN_MTU capability flag.


(martin)
diff -r1.5 -r1.5.8.1 src/sys/arch/mips/cavium/dev/if_cnmac.c

cvs diff -r1.5 -r1.5.8.1 src/sys/arch/mips/cavium/dev/if_cnmac.c (expand / switch to context diff)
--- src/sys/arch/mips/cavium/dev/if_cnmac.c 2016/12/15 09:28:03 1.5
+++ src/sys/arch/mips/cavium/dev/if_cnmac.c 2017/11/27 14:09:11 1.5.8.1
@@ -1,8 +1,8 @@
-/*	$NetBSD: if_cnmac.c,v 1.5 2016/12/15 09:28:03 ozaki-r Exp $	*/
+/*	$NetBSD: if_cnmac.c,v 1.5.8.1 2017/11/27 14:09:11 martin Exp $	*/
 
 #include <sys/cdefs.h>
 #if 0
-__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.5 2016/12/15 09:28:03 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.5.8.1 2017/11/27 14:09:11 martin Exp $");
 #endif
 
 #include "opt_octeon.h"
@@ -365,6 +365,9 @@
 	ifp->if_capabilities =
 		IFCAP_CSUM_IPv4_Rx | IFCAP_CSUM_TCPv4_Rx | IFCAP_CSUM_UDPv4_Rx |
 		IFCAP_CSUM_TCPv6_Rx | IFCAP_CSUM_UDPv6_Rx;
+
+	/* 802.1Q VLAN-sized frames are supported */
+	sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU;
 
 	octeon_gmx_set_mac_addr(sc->sc_gmx_port, enaddr);
 	octeon_gmx_set_filter(sc->sc_gmx_port);