summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-29 19:19:01 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-11-29 19:19:01 +0000
commit87b46f71594d3c10bbec87c8c459dd1ede6a98f8 (patch)
tree85466f71b1b4552a6f133049f6dbbcf4d386ac18
parent4e30fdf62d0493da9d6a7ea0bbf4873441870837 (diff)
The network stack currently uses IPL_SOFTNET. Consistently initialize
the TDB sadb mutex with that. The old IPL_NET was chosen by accident. OK mpi@
-rw-r--r--sys/netinet/ip_ipsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 21be98c83a2..197720d8309 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.257 2021/11/29 15:39:59 bluhm Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.258 2021/11/29 19:19:00 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -186,7 +186,7 @@ const struct xformsw *const xformswNXFORMSW = &xformsw[nitems(xformsw)];
#define TDB_HASHSIZE_INIT 32
/* Protected by the tdb_sadb_mtx. */
-struct mutex tdb_sadb_mtx = MUTEX_INITIALIZER(IPL_NET);
+struct mutex tdb_sadb_mtx = MUTEX_INITIALIZER(IPL_SOFTNET);
static SIPHASH_KEY tdbkey;
static struct tdb **tdbh;
static struct tdb **tdbdst;