Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fixed a bug where 'ifconfig vmx0 down up' caused...



details:   https://anonhg.NetBSD.org/src/rev/63b945f8f711
branches:  trunk
changeset: 944877:63b945f8f711
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Oct 15 04:33:24 2020 +0000

description:
Fixed a bug where 'ifconfig vmx0 down up' caused a failure to send.
This procedure was leaving sc->vmx_link_active = 0.

ok nakahara@

diffstat:

 sys/dev/pci/if_vmx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dd2a4767b2a2 -r 63b945f8f711 sys/dev/pci/if_vmx.c
--- a/sys/dev/pci/if_vmx.c      Thu Oct 15 04:21:53 2020 +0000
+++ b/sys/dev/pci/if_vmx.c      Thu Oct 15 04:33:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.2 2020/10/14 10:26:59 ryo Exp $   */
+/*     $NetBSD: if_vmx.c,v 1.3 2020/10/15 04:33:24 ryo Exp $   */
 /*     $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $        */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.2 2020/10/14 10:26:59 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.3 2020/10/15 04:33:24 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -2905,7 +2905,7 @@
        }
 
        ifp->if_flags |= IFF_RUNNING;
-       vmxnet3_cmd_link_status(ifp);
+       vmxnet3_if_link_status(sc);
 
        vmxnet3_enable_all_intrs(sc);
        callout_reset(&sc->vmx_tick, hz, vmxnet3_tick, sc);



Home | Main Index | Thread Index | Old Index