Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/e7615977ae24
branches:  netbsd-9
changeset: 1002084:e7615977ae24
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Dec 11 15:43:16 2020 +0000

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

        sys/dev/hyperv/if_hvn.c: revision 1.19

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

diffstat:

 sys/dev/hyperv/if_hvn.c |  25 +++----------------------
 1 files changed, 3 insertions(+), 22 deletions(-)

diffs (46 lines):

diff -r 274f4b59d931 -r e7615977ae24 sys/dev/hyperv/if_hvn.c
--- a/sys/dev/hyperv/if_hvn.c   Tue Dec 08 18:47:20 2020 +0000
+++ b/sys/dev/hyperv/if_hvn.c   Fri Dec 11 15:43:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_hvn.c,v 1.4.2.5 2019/11/26 08:22:51 martin Exp $    */
+/*     $NetBSD: if_hvn.c,v 1.4.2.6 2020/12/11 15:43:16 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.4.2.5 2019/11/26 08:22:51 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.4.2.6 2020/12/11 15:43:16 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -376,26 +376,7 @@
 
        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;
-       default:
-               error = ether_ioctl(ifp, command, data);
-               break;
-       }
-
+       error = ether_ioctl(ifp, command, data);
        if (error == ENETRESET) {
                if (ifp->if_flags & IFF_RUNNING)
                        hvn_iff(sc);



Home | Main Index | Thread Index | Old Index