Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci vmx(4) can be set IFEF_MPSAFE now.



details:   https://anonhg.NetBSD.org/src/rev/53da8d075027
branches:  trunk
changeset: 1000275:53da8d075027
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Jul 19 08:49:44 2019 +0000

description:
vmx(4) can be set IFEF_MPSAFE now.

I tested bidirectional forwarding with some ioctls.

diffstat:

 sys/arch/x86/pci/if_vmx.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5e62be7ba4d2 -r 53da8d075027 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Fri Jul 19 08:46:32 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Fri Jul 19 08:49:44 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.34 2019/07/19 08:46:32 knakahara Exp $    */
+/*     $NetBSD: if_vmx.c,v 1.35 2019/07/19 08:49:44 knakahara 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.34 2019/07/19 08:46:32 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.35 2019/07/19 08:49:44 knakahara Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -1705,6 +1705,7 @@
        strlcpy(ifp->if_xname, device_xname(sc->vmx_dev), IFNAMSIZ);
        ifp->if_softc = sc;
        ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_SIMPLEX;
+       ifp->if_extflags = IFEF_MPSAFE;
        ifp->if_ioctl = vmxnet3_ioctl;
        ifp->if_start = vmxnet3_start;
        ifp->if_watchdog = NULL;



Home | Main Index | Thread Index | Old Index