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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to