summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-10-29 14:58:40 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-10-29 14:58:40 +0000
commita9c7839f818efe6a2d3b25b03196eadddd03313c (patch)
tree9326928a568dde73856a4f9744f454e74e9669ff /sys/netinet/ip_input.c
parent7b5436a077c81aa21598910cbd9f55634db28c1a (diff)
This doesn't need the NET_LOCK, everything is protected by a mutex.
OK mpi, visa
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 8808d5cb2f0..ec0fff49ef3 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.325 2017/10/29 14:56:36 florian Exp $ */
+/* $OpenBSD: ip_input.c,v 1.326 2017/10/29 14:58:39 florian Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1028,7 +1028,6 @@ ip_slowtimo(void)
{
struct ipq *fp, *nfp;
- NET_LOCK();
mtx_enter(&ipq_mutex);
LIST_FOREACH_SAFE(fp, &ipq, ipq_q, nfp) {
if (--fp->ipq_ttl == 0) {
@@ -1037,7 +1036,6 @@ ip_slowtimo(void)
}
}
mtx_leave(&ipq_mutex);
- NET_UNLOCK();
}
/*