From owner-cvs-src@FreeBSD.ORG Wed Feb 6 21:37:45 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A92B16A417; Wed, 6 Feb 2008 21:37:45 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7402013C448; Wed, 6 Feb 2008 21:37:45 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m16LbjCn009200; Wed, 6 Feb 2008 21:37:45 GMT (envelope-from mav@repoman.freebsd.org) Received: (from mav@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m16LbjDK009199; Wed, 6 Feb 2008 21:37:45 GMT (envelope-from mav) Message-Id: <200802062137.m16LbjDK009199@repoman.freebsd.org> From: Alexander Motin Date: Wed, 6 Feb 2008 21:37:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/netgraph netgraph.h ng_base.c ng_iface.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 21:37:45 -0000 mav 2008-02-06 21:37:45 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/netgraph netgraph.h ng_base.c ng_iface.c Log: Massive sync with HEAD: - Instead of direct manipulation on queue and worklist mutexes, bring macros for doing this job. This change will make it easy to migrate from using spinning locks to adaptive ones. - We don't need spinning locks here. Change them to the adaptive mutexes. This change should bring no performance decrease, as it did not in my tests. - Despite several examples in the kernel, the third argument of sysctl_handle_int is not sizeof the int type you want to export. - Implement stack protection based on GET_STACK_USAGE() macro. This fixes system panics possible with complicated netgraph setups and allows to avoid unneded extra queueing for stack unwrapping. - Cleanup and tune ng_snd_item() function as it is one of the most busy netgraph functions. Revision Changes Path 1.55.2.11 +23 -0 src/sys/netgraph/netgraph.h 1.102.2.15 +140 -174 src/sys/netgraph/ng_base.c 1.43.2.4 +1 -0 src/sys/netgraph/ng_iface.c