summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index beb620b..63e10c8 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -235,6 +235,7 @@ ip_init()
ip_id = time_second & 0xffff;
ipintrq.ifq_maxlen = ipqmaxlen;
+ mtx_init(&ipintrq.ifq_mtx, "ip_inq", MTX_DEF);
register_netisr(NETISR_IP, ipintr);
}
@@ -745,13 +746,10 @@ bad:
static void
ipintr(void)
{
- int s;
struct mbuf *m;
- while(1) {
- s = splimp();
+ while (1) {
IF_DEQUEUE(&ipintrq, m);
- splx(s);
if (m == 0)
return;
ip_input(m);
OpenPOWER on IntegriCloud