svn commit: r194699 - head/sys/netgraph
Alexander Motin
mav at FreeBSD.org
Tue Jun 23 12:30:23 UTC 2009
Author: mav
Date: Tue Jun 23 12:30:21 2009
New Revision: 194699
URL: http://svn.freebsd.org/changeset/base/194699
Log:
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.
Modified:
head/sys/netgraph/ng_ether.c
Modified: head/sys/netgraph/ng_ether.c
==============================================================================
--- head/sys/netgraph/ng_ether.c Tue Jun 23 11:41:58 2009 (r194698)
+++ head/sys/netgraph/ng_ether.c Tue Jun 23 12:30:21 2009 (r194699)
@@ -435,7 +435,7 @@ ng_ether_newhook(node_p node, hook_p hoo
/* 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);
More information about the svn-src-all
mailing list