Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/cavium/dev Set ETHERCAP_VLAN_MTU capability flag.



details:   https://anonhg.NetBSD.org/src/rev/80ad1a271d7c
branches:  trunk
changeset: 828075:80ad1a271d7c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Nov 26 18:41:14 2017 +0000

description:
Set ETHERCAP_VLAN_MTU capability flag.

diffstat:

 sys/arch/mips/cavium/dev/if_cnmac.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r d9c1bb55de8e -r 80ad1a271d7c sys/arch/mips/cavium/dev/if_cnmac.c
--- a/sys/arch/mips/cavium/dev/if_cnmac.c       Sun Nov 26 17:46:13 2017 +0000
+++ b/sys/arch/mips/cavium/dev/if_cnmac.c       Sun Nov 26 18:41:14 2017 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: if_cnmac.c,v 1.6 2017/08/22 07:09:00 maya Exp $        */
+/*     $NetBSD: if_cnmac.c,v 1.7 2017/11/26 18:41:14 jmcneill Exp $    */
 
 #include <sys/cdefs.h>
 #if 0
-__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.6 2017/08/22 07:09:00 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cnmac.c,v 1.7 2017/11/26 18:41:14 jmcneill Exp $");
 #endif
 
 #include "opt_octeon.h"
@@ -366,6 +366,9 @@
                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);
 



Home | Main Index | Thread Index | Old Index