Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Add __read_mostly to key_psz
details: https://anonhg.NetBSD.org/src/rev/1bf768638a78
branches: trunk
changeset: 355642:1bf768638a78
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Aug 08 01:55:17 2017 +0000
description:
Add __read_mostly to key_psz
Suggested by riastradh@
diffstat:
sys/netipsec/key.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d43f86bc429 -r 1bf768638a78 sys/netipsec/key.c
--- a/sys/netipsec/key.c Mon Aug 07 23:57:40 2017 +0000
+++ b/sys/netipsec/key.c Tue Aug 08 01:55:17 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.212 2017/08/07 07:45:45 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.213 2017/08/08 01:55:17 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.212 2017/08/07 07:45:45 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.213 2017/08/08 01:55:17 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -204,7 +204,7 @@
* - key_misc.lock must be held even for read accesses
*/
-static pserialize_t key_psz;
+static pserialize_t key_psz __read_mostly;
/* SPD */
static struct {
Home |
Main Index |
Thread Index |
Old Index