Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Add missing ifdef NET_MPSAFE
details: https://anonhg.NetBSD.org/src/rev/b0e464661a17
branches: trunk
changeset: 356449:b0e464661a17
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Sep 27 09:55:52 2017 +0000
description:
Add missing ifdef NET_MPSAFE
diffstat:
sys/netipsec/key.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 001d0ad88286 -r b0e464661a17 sys/netipsec/key.c
--- a/sys/netipsec/key.c Wed Sep 27 09:20:27 2017 +0000
+++ b/sys/netipsec/key.c Wed Sep 27 09:55:52 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.226 2017/09/27 07:27:29 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.227 2017/09/27 09:55:52 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.226 2017/09/27 07:27:29 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.227 2017/09/27 09:55:52 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -804,6 +804,7 @@
return 0;
}
+#ifdef NET_MPSAFE
static void
key_spd_pserialize_perform(void)
{
@@ -821,6 +822,7 @@
key_spd.psz_performing = false;
cv_broadcast(&key_spd.cv_psz);
}
+#endif
/*
* Remove the sp from the key_spd.splist and wait for references to the sp
@@ -1497,6 +1499,7 @@
}
#endif
+#ifdef NET_MPSAFE
static void
key_sad_pserialize_perform(void)
{
@@ -1514,6 +1517,7 @@
key_sad.psz_performing = false;
cv_broadcast(&key_sad.cv_psz);
}
+#endif
/*
* Remove the sav from the savlist of its sah and wait for references to the sav
Home |
Main Index |
Thread Index |
Old Index