From owner-cvs-all@FreeBSD.ORG Fri Sep 3 03:09:55 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8816516A4CE; Fri, 3 Sep 2004 03:09:55 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62EBA43D41; Fri, 3 Sep 2004 03:09:55 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8339tLW012362; Fri, 3 Sep 2004 03:09:55 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8339tCS012361; Fri, 3 Sep 2004 03:09:55 GMT (envelope-from rwatson) Message-Id: <200409030309.i8339tCS012361@repoman.freebsd.org> From: Robert Watson Date: Fri, 3 Sep 2004 03:09:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/conf options src/sys/sys kernel.h src/sys/net netisr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 03:09:55 -0000 rwatson 2004-09-03 03:09:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/conf options sys/sys kernel.h sys/net netisr.c Log: Merge sys/conf/options:1.478, sys/net/netisr.c:1.12, and sys/sys/kernel.h:1.118 to RELENG_5: Change the default disposition of debug.mpsafenet from 0 to 1, which will cause the network stack to operate without the Giant lock by default. This change has the potential to improve performance by increasing parallelism and decreasing latency in network processing. Due to the potential exposure of existing or new bugs, the following compatibility functionality is maintained: - It is still possible to disable Giant-free operation by setting debug.mpsafenet to 0 in loader.conf. - Add "options NET_WITH_GIANT", which will restore the default value of debug.mpsafenet to 0, and is intended for use on systems compiled with known unsafe components, or where a more conservative configuration is desired. - Add a new declaration, NET_NEEDS_GIANT("componentname"), which permits kernel components to declare dependence on Giant over the network stack. If the declaration is made by a preloaded module or a compiled in component, the disposition of debug.mpsafenet will be set to 0 and a warning concerning performance degraded operation printed to the console. If it is declared by a loadable kernel module after boot, a warning is displayed but the disposition cannot be changed. This is implemented by defining a new SYSINIT() value, SI_SUB_SETTINGS, which is intended for the processing of configuration choices after tunables are read in and the console is available to generate errors, but before much else gets going. This compatibility behavior will go away when we've finished the last of the locking work and are confident that operation is correct. Approved by: re (scottl, kensmith) Revision Changes Path 1.475.2.2 +1 -0 src/sys/conf/options 1.10.2.1 +82 -3 src/sys/net/netisr.c 1.117.2.1 +6 -0 src/sys/sys/kernel.h