summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2019-08-06 22:57:54 +0000
committerbluhm <bluhm@openbsd.org>2019-08-06 22:57:54 +0000
commit8f6d2e8bf0b541dc10865826bab4d248a2639690 (patch)
treebc72def5225ea158d71545965910af9ec2b4a62f /sys/net/if.c
parentFix white spaces. (diff)
downloadwireguard-openbsd-8f6d2e8bf0b541dc10865826bab4d248a2639690.tar.xz
wireguard-openbsd-8f6d2e8bf0b541dc10865826bab4d248a2639690.zip
When we needed the kernel lock for local IP packet delivery, mpi@
introduced a queue to grab the lock for multiple packets. Now we have only netlock for both IP and protocol input. So the queue is not necessary anymore. It just switches CPU and decreases performance. So remove the inet and inet6 ip queue for local packets. To get TCP running on loopback, we have to queue once between TCP input and output of the two sockets. So use the loopback queue in looutput() unconditionally. OK visa@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index d97506bc0ef..053fef352ff 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.586 2019/06/30 23:02:28 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.587 2019/08/06 22:57:54 bluhm Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -997,12 +997,6 @@ if_netisr(void *unused)
KERNEL_UNLOCK();
}
#endif
- if (n & (1 << NETISR_IP))
- ipintr();
-#ifdef INET6
- if (n & (1 << NETISR_IPV6))
- ip6intr();
-#endif
#if NPPP > 0
if (n & (1 << NETISR_PPP)) {
KERNEL_LOCK();