aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-11-08 22:28:40 +0000
committerSam Leffler <sam@FreeBSD.org>2003-11-08 22:28:40 +0000
commit7902224c6bf05f57bba57a72b6d11d4023a84883 (patch)
tree2ce18b56605a2424ffb613d7f2ee4678a34df3a4 /sys/netipx
parent2d633fc8791456671ec449c23b860987af364ad6 (diff)
downloadsrc-7902224c6bf05f57bba57a72b6d11d4023a84883.tar.gz
src-7902224c6bf05f57bba57a72b6d11d4023a84883.zip
o add a flags parameter to netisr_register that is used to specify
whether or not the isr needs to hold Giant when running; Giant-less operation is also controlled by the setting of debug_mpsafenet o mark all netisr's except NETISR_IP as needing Giant o add a GIANT_REQUIRED assertion to the top of netisr's that need Giant o pickup Giant (when debug_mpsafenet is 1) inside ip_input before calling up with a packet o change netisr handling so swi_net runs w/o Giant; instead we grab Giant before invoking handlers based on whether the handler needs Giant o change netisr handling so that netisr's that are marked MPSAFE may have multiple instances active at a time o add netisr statistics for packets dropped because the isr is inactive Supported by: FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=122320
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index d62c95f76d18..a511a4f623ec 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -119,7 +119,7 @@ ipx_init()
ipxintrq.ifq_maxlen = ipxqmaxlen;
mtx_init(&ipxintrq.ifq_mtx, "ipx_inq", NULL, MTX_DEF);
- netisr_register(NETISR_IPX, ipxintr, &ipxintrq);
+ netisr_register(NETISR_IPX, ipxintr, &ipxintrq, 0);
}
/*
@@ -133,6 +133,8 @@ ipxintr(struct mbuf *m)
struct ipx_ifaddr *ia;
int len;
+ GIANT_REQUIRED;
+
/*
* If no IPX addresses have been set yet but the interfaces
* are receiving, can't do anything with incoming packets yet.