svn commit: r195232 - in stable/7/sys: . contrib/pf netgraph

Alexander Motin mav at FreeBSD.org
Wed Jul 1 08:43:06 UTC 2009


Author: mav
Date: Wed Jul  1 08:43:05 2009
New Revision: 195232
URL: http://svn.freebsd.org/changeset/base/195232

Log:
  MFC rev.194699:
  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:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/netgraph/ng_ether.c

Modified: stable/7/sys/netgraph/ng_ether.c
==============================================================================
--- stable/7/sys/netgraph/ng_ether.c	Wed Jul  1 08:08:56 2009	(r195231)
+++ stable/7/sys/netgraph/ng_ether.c	Wed Jul  1 08:43:05 2009	(r195232)
@@ -403,7 +403,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-stable mailing list