Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 12:30:21 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194699 - head/sys/netgraph
Message-ID:  <200906231230.n5NCULon075895@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906231230.n5NCULon075895>