Source-Changes-HG archive

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

[src/trunk]: src/sys/net loop: don't allocate a unnecessary link-state-change...



details:   https://anonhg.NetBSD.org/src/rev/416c8f70fc90
branches:  trunk
changeset: 362847:416c8f70fc90
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Jun 28 06:02:24 2018 +0000

description:
loop: don't allocate a unnecessary link-state-change thread

diffstat:

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

diffs (29 lines):

diff -r e49c57c57b93 -r 416c8f70fc90 sys/net/if_loop.c
--- a/sys/net/if_loop.c Wed Jun 27 23:26:13 2018 +0000
+++ b/sys/net/if_loop.c Thu Jun 28 06:02:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_loop.c,v 1.102 2018/06/26 06:48:02 msaitoh Exp $    */
+/*     $NetBSD: if_loop.c,v 1.103 2018/06/28 06:02:24 ozaki-r Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.102 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.103 2018/06/28 06:02:24 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -183,8 +183,9 @@
 
        ifp->if_mtu = LOMTU;
        ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST;
+       ifp->if_extflags = IFEF_NO_LINK_STATE_CHANGE;
 #ifdef NET_MPSAFE
-       ifp->if_extflags = IFEF_MPSAFE;
+       ifp->if_extflags |= IFEF_MPSAFE;
 #endif
        ifp->if_ioctl = loioctl;
        ifp->if_output = looutput;



Home | Main Index | Thread Index | Old Index