Source-Changes-HG archive

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

[src/trunk]: src/sys/net Use if_is_mpsafe (NFC)



details:   https://anonhg.NetBSD.org/src/rev/6edb4286cea2
branches:  trunk
changeset: 319026:6edb4286cea2
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon May 14 02:53:29 2018 +0000
description:
Use if_is_mpsafe (NFC)

diffstat:

 sys/net/if.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 608da18befce -r 6edb4286cea2 sys/net/if.c
--- a/sys/net/if.c      Mon May 14 02:16:29 2018 +0000
+++ b/sys/net/if.c      Mon May 14 02:53:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.420 2018/04/12 18:44:59 christos Exp $        */
+/*     $NetBSD: if.c,v 1.421 2018/05/14 02:53:29 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.420 2018/04/12 18:44:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.421 2018/05/14 02:53:29 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -704,8 +704,7 @@
 
        if (if_is_link_state_changeable(ifp)) {
                u_int flags = SOFTINT_NET;
-               flags |= ISSET(ifp->if_extflags, IFEF_MPSAFE) ?
-                   SOFTINT_MPSAFE : 0;
+               flags |= if_is_mpsafe(ifp) ? SOFTINT_MPSAFE : 0;
                ifp->if_link_si = softint_establish(flags,
                    if_link_state_change_si, ifp);
                if (ifp->if_link_si == NULL) {



Home | Main Index | Thread Index | Old Index