Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/hyperv Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/243dca9d197d
branches:  netbsd-8
changeset: 947112:243dca9d197d
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Dec 11 15:48:02 2020 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #1635):

        sys/dev/hyperv/if_hvn.c: revision 1.19 (via patch)

hvn(4): fix unable to ifconfig up/down.

diffstat:

 sys/dev/hyperv/if_hvn.c |  18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diffs (39 lines):

diff -r 9470886d4c02 -r 243dca9d197d sys/dev/hyperv/if_hvn.c
--- a/sys/dev/hyperv/if_hvn.c   Tue Dec 08 18:49:33 2020 +0000
+++ b/sys/dev/hyperv/if_hvn.c   Fri Dec 11 15:48:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_hvn.c,v 1.2.2.7 2019/11/26 08:25:28 martin Exp $    */
+/*     $NetBSD: if_hvn.c,v 1.2.2.8 2020/12/11 15:48:02 martin Exp $    */
 /*     $OpenBSD: if_hvn.c,v 1.39 2018/03/11 14:31:34 mikeb Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.2.2.7 2019/11/26 08:25:28 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.2.2.8 2020/12/11 15:48:02 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -379,20 +379,6 @@
        s = splnet();
 
        switch (command) {
-       case SIOCSIFFLAGS:
-               if (ifp->if_flags & IFF_UP) {
-                       if (ifp->if_flags & IFF_RUNNING)
-                               error = ENETRESET;
-                       else {
-                               error = hvn_init(ifp);
-                               if (error)
-                                       ifp->if_flags &= ~IFF_UP;
-                       }
-               } else {
-                       if (ifp->if_flags & IFF_RUNNING)
-                               hvn_stop(ifp, 1);
-               }
-               break;
        case SIOCGIFMEDIA:
        case SIOCSIFMEDIA:
                error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, command);



Home | Main Index | Thread Index | Old Index