From owner-cvs-src-old@FreeBSD.ORG Tue Jul 21 21:59:11 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D88C106568A for ; Tue, 21 Jul 2009 21:59:11 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69BBB8FC27 for ; Tue, 21 Jul 2009 21:59:11 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6LLxBqO009896 for ; Tue, 21 Jul 2009 21:59:11 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6LLxBKj009895 for cvs-src-old@freebsd.org; Tue, 21 Jul 2009 21:59:11 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200907212159.n6LLxBKj009895@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Tue, 21 Jul 2009 21:58:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_sysctl.c src/sys/net vnet.h src/sys/netinet tcp_subr.c src/sys/netinet6 in6_proto.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 21:59:11 -0000 bz 2009-07-21 21:58:55 UTC FreeBSD src repository Modified files: sys/kern kern_sysctl.c sys/net vnet.h sys/netinet tcp_subr.c sys/netinet6 in6_proto.c Log: SVN rev 195814 on 2009-07-21 21:58:55Z by bz sysctl_msec_to_ticks is used with both virtualized and non-vrtiualized sysctls so we cannot used one common function. Add a macro to convert the arg1 in the virtualized case to vnet.h to not expose the maths to all over the code. Add a wrapper for the single virtualized call, properly handling arg1 and call the default implementation from there. Convert the two over places to use the new macro. Reviewed by: rwatson Approved by: re (kib) Revision Changes Path 1.200 +0 -5 src/sys/kern/kern_sysctl.c 1.20 +6 -0 src/sys/net/vnet.h 1.349 +9 -1 src/sys/netinet/tcp_subr.c 1.65 +2 -10 src/sys/netinet6/in6_proto.c