summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ether.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-06-23 12:30:21 +0000
committermav <mav@FreeBSD.org>2009-06-23 12:30:21 +0000
commitd3c42edbcc3e0d6154170dcaae100fe939805c7c (patch)
tree06e143a2df079ad4e5d26e86dd01e0554e62a5a0 /sys/netgraph/ng_ether.c
parent6945f47d28483ce36a40a8a49b90eff719bb1ee0 (diff)
downloadFreeBSD-src-d3c42edbcc3e0d6154170dcaae100fe939805c7c.zip
FreeBSD-src-d3c42edbcc3e0d6154170dcaae100fe939805c7c.tar.gz
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.
Diffstat (limited to 'sys/netgraph/ng_ether.c')
-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 d009e00..457a042 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);
OpenPOWER on IntegriCloud