Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 08:43:05 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r195232 - in stable/7/sys: . contrib/pf netgraph
Message-ID:  <200907010843.n618h5Xm006670@svn.freebsd.org>

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



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