Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add ETHERCAP_VLAN_MTU capability to vioif



details:   https://anonhg.NetBSD.org/src/rev/0913be3b9ea0
branches:  trunk
changeset: 802923:0913be3b9ea0
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Oct 09 04:58:42 2014 +0000

description:
Add ETHERCAP_VLAN_MTU capability to vioif

diffstat:

 sys/dev/pci/if_vioif.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 6a6c4e291aaf -r 0913be3b9ea0 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Thu Oct 09 04:48:12 2014 +0000
+++ b/sys/dev/pci/if_vioif.c    Thu Oct 09 04:58:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.10 2014/10/08 03:34:44 ozaki-r Exp $    */
+/*     $NetBSD: if_vioif.c,v 1.11 2014/10/09 04:58:42 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.10 2014/10/08 03:34:44 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.11 2014/10/09 04:58:42 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -613,6 +613,8 @@
        ifp->if_capabilities = 0;
        ifp->if_watchdog = vioif_watchdog;
 
+       sc->sc_ethercom.ec_capabilities |= ETHERCAP_VLAN_MTU;
+
        if_attach(ifp);
        ether_ifattach(ifp, sc->sc_mac);
 



Home | Main Index | Thread Index | Old Index