From: bluhm Date: Mon, 29 Nov 2021 19:19:00 +0000 (+0000) Subject: The network stack currently uses IPL_SOFTNET. Consistently initialize X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=800f9b800bd3f6cc58191df0293a7ae17a966d7f;p=openbsd 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@ --- 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;