Module Name: src
Committed By: msaitoh
Date: Thu May 24 05:27:29 UTC 2018
Modified Files:
src/sys/net: if.c
Log Message:
Print "NET_MPSAFE enabled" if it's enabled.
To generate a diff of this commit:
cvs rdiff -u -r1.423 -r1.424 src/sys/net/if.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if.c
diff -u src/sys/net/if.c:1.423 src/sys/net/if.c:1.424
--- src/sys/net/if.c:1.423 Mon May 14 02:55:46 2018
+++ src/sys/net/if.c Thu May 24 05:27:29 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.423 2018/05/14 02:55:46 ozaki-r Exp $ */
+/* $NetBSD: if.c,v 1.424 2018/05/24 05:27:29 msaitoh 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.423 2018/05/14 02:55:46 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.424 2018/05/24 05:27:29 msaitoh Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -299,6 +299,11 @@ ifinit(void)
void
ifinit1(void)
{
+
+#ifdef NET_MPSAFE
+ printf("NET_MPSAFE enabled\n");
+#endif
+
mutex_init(&if_clone_mtx, MUTEX_DEFAULT, IPL_NONE);
TAILQ_INIT(&ifnet_list);