Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Only initialize the NET_MPSAFE stuff once, for the n...
details: https://anonhg.NetBSD.org/src/rev/a96d9ea34bd0
branches: trunk
changeset: 450997:a96d9ea34bd0
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri May 03 02:10:58 2019 +0000
description:
Only initialize the NET_MPSAFE stuff once, for the non-compat version
of route_init().
diffstat:
sys/net/rtsock_shared.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 1a92440501ea -r a96d9ea34bd0 sys/net/rtsock_shared.c
--- a/sys/net/rtsock_shared.c Fri May 03 01:08:28 2019 +0000
+++ b/sys/net/rtsock_shared.c Fri May 03 02:10:58 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock_shared.c,v 1.8 2019/04/29 16:12:30 roy Exp $ */
+/* $NetBSD: rtsock_shared.c,v 1.9 2019/05/03 02:10:58 pgoyette Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.8 2019/04/29 16:12:30 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.9 2019/05/03 02:10:58 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1634,14 +1634,12 @@
#ifndef COMPAT_RTSOCK
rt_init();
-#endif
#ifdef NET_MPSAFE
rt_so_mtx = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
cv_init(&rt_update_cv, "rtsock_cv");
#endif
-#ifndef COMPAT_RTSOCK
sysctl_net_route_setup(NULL, PF_ROUTE, "rtable");
#endif
ri->ri_intrq.ifq_maxlen = ri->ri_maxqlen;
Home |
Main Index |
Thread Index |
Old Index