Date: Wed, 6 Feb 2008 21:37:45 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netgraph netgraph.h ng_base.c ng_iface.c Message-ID: <200802062137.m16LbjDK009199@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802062137.m16LbjDK009199>