Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Set IFEF_MPSAFE flag



details:   https://anonhg.NetBSD.org/src/rev/6477c699477f
branches:  trunk
changeset: 447511:6477c699477f
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Mon Jan 14 14:57:25 2019 +0000

description:
Set IFEF_MPSAFE flag

diffstat:

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

diffs (28 lines):

diff -r c297b438ca7a -r 6477c699477f sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Mon Jan 14 14:55:37 2019 +0000
+++ b/sys/dev/pci/if_vioif.c    Mon Jan 14 14:57:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.44 2019/01/14 14:52:57 yamaguchi Exp $  */
+/*     $NetBSD: if_vioif.c,v 1.45 2019/01/14 14:57:25 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.44 2019/01/14 14:52:57 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.45 2019/01/14 14:57:25 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -702,6 +702,9 @@
        strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
        ifp->if_softc = sc;
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+#ifdef VIOIF_MPSAFE
+       ifp->if_extflags = IFEF_MPSAFE;
+#endif
        ifp->if_start = vioif_start;
        ifp->if_ioctl = vioif_ioctl;
        ifp->if_init = vioif_init;



Home | Main Index | Thread Index | Old Index