diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-10-12 09:25:52 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-10-12 09:25:52 +0000 |
commit | 13008687d43d8b904d17f862f9f9a7d2ffe7d5f9 (patch) | |
tree | 39dc585aa21597ccfddfd0723af0d99c4c20c211 /sys/i4b | |
parent | b59833124d120c3490cae1a39e633cc3a123322d (diff) | |
download | FreeBSD-src-13008687d43d8b904d17f862f9f9a7d2ffe7d5f9.zip FreeBSD-src-13008687d43d8b904d17f862f9f9a7d2ffe7d5f9.tar.gz |
Mark i4b IPR and SPPP drivers as NET_NEEDS_GIANT(), as they both
interface with the network stack but are not yet sufficiently
synchronized to run without the Giant lock. It migh be possible
to mark the interfaces as IFF_NEEDSGIANT, but I'm unable to test
that configuration and am unfamiliar with the architecture of
i4b.
Diffstat (limited to 'sys/i4b')
-rw-r--r-- | sys/i4b/driver/i4b_ipr.c | 2 | ||||
-rw-r--r-- | sys/i4b/driver/i4b_isppp.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/i4b/driver/i4b_ipr.c b/sys/i4b/driver/i4b_ipr.c index 5a61258..4fc5435 100644 --- a/sys/i4b/driver/i4b_ipr.c +++ b/sys/i4b/driver/i4b_ipr.c @@ -105,6 +105,8 @@ __FBSDID("$FreeBSD$"); #include <i4b/layer4/i4b_l4.h> +NET_NEEDS_GIANT("i4b_ipr"); + #define I4BIPRMTU 1500 /* regular MTU */ #define I4BIPRMAXMTU 2000 /* max MTU */ #define I4BIPRMINMTU 500 /* min MTU */ diff --git a/sys/i4b/driver/i4b_isppp.c b/sys/i4b/driver/i4b_isppp.c index 3f7f56c..f80d1ea 100644 --- a/sys/i4b/driver/i4b_isppp.c +++ b/sys/i4b/driver/i4b_isppp.c @@ -67,6 +67,8 @@ __FBSDID("$FreeBSD$"); #include <i4b/layer4/i4b_l4.h> +NET_NEEDS_GIANT("i4b_isppp"); + #define ISPPP_FMT "isp%d: " #define ISPPP_ARG(sc) ((sc)->sc_if.if_dunit) #define PDEVSTATIC static |