aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2009-06-23 12:30:21 +0000
committerAlexander Motin <mav@FreeBSD.org>2009-06-23 12:30:21 +0000
commitc1b8a9edabef3e1703b4ace3cdaadc833cf2465e (patch)
tree06e143a2df079ad4e5d26e86dd01e0554e62a5a0 /sys/netgraph
parent401679debec3d37bb801d28c538ba2f262fff056 (diff)
downloadsrc-c1b8a9edabef3e1703b4ace3cdaadc833cf2465e.tar.gz
src-c1b8a9edabef3e1703b4ace3cdaadc833cf2465e.zip
Mark ng_ether node hooks as HI_STACK. It is usually the last point when
netgraph may unroll the call stack, and I have found that in some cases 2K guarantied there for i386 may be not enough for NIC driver and BPF.
Notes
Notes: svn path=/head/; revision=194699
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c
index d009e0065aea..457a04288649 100644
--- a/sys/netgraph/ng_ether.c
+++ b/sys/netgraph/ng_ether.c
@@ -435,7 +435,7 @@ ng_ether_newhook(node_p node, hook_p hook, const char *name)
/* Disable hardware checksums while 'upper' hook is connected */
if (hookptr == &priv->upper)
priv->ifp->if_hwassist = 0;
-
+ NG_HOOK_HI_STACK(hook);
/* OK */
*hookptr = hook;
return (0);