From owner-p4-projects@FreeBSD.ORG Fri Dec 5 10:35:19 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 74DE91065675; Fri, 5 Dec 2008 10:35:19 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 380E61065673 for ; Fri, 5 Dec 2008 10:35:19 +0000 (UTC) (envelope-from zec@tel.fer.hr) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 26A418FC12 for ; Fri, 5 Dec 2008 10:35:19 +0000 (UTC) (envelope-from zec@tel.fer.hr) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mB5AZJ4L045181 for ; Fri, 5 Dec 2008 10:35:19 GMT (envelope-from zec@tel.fer.hr) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mB5AZJSb045179 for perforce@freebsd.org; Fri, 5 Dec 2008 10:35:19 GMT (envelope-from zec@tel.fer.hr) Date: Fri, 5 Dec 2008 10:35:19 GMT Message-Id: <200812051035.mB5AZJSb045179@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zec@tel.fer.hr using -f From: Marko Zec To: Perforce Change Reviews Cc: Subject: PERFORCE change 154102 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 10:35:19 -0000 http://perforce.freebsd.org/chv.cgi?CH=154102 Change 154102 by zec@zec_tca51 on 2008/12/05 10:34:30 Use TUNABLE_INT_FETCH() instead of TUNABLE_INT() for V_ vars. Affected files ... .. //depot/projects/vimage-commit2/src/sys/netinet/tcp_sack.c#16 edit .. //depot/projects/vimage-commit2/src/sys/netinet/tcp_subr.c#35 edit .. //depot/projects/vimage-commit2/src/sys/netinet6/in6_proto.c#16 edit .. //depot/projects/vimage-commit2/src/sys/netinet6/ip6_input.c#16 edit Differences ... ==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_sack.c#16 (text+ko) ==== @@ -135,10 +135,6 @@ SYSCTL_NODE(_net_inet_tcp, OID_AUTO, sack, CTLFLAG_RW, 0, "TCP SACK"); SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_tcp_sack, OID_AUTO, enable, CTLFLAG_RW, tcp_do_sack, 0, "Enable/Disable TCP SACK support"); -#ifdef VIMAGE_GLOBALS -/* XXX REVISIT THIS !!! */ -TUNABLE_INT("net.inet.tcp.sack.enable", &tcp_do_sack); -#endif SYSCTL_V_INT(V_NET, vnet_inet, _net_inet_tcp_sack, OID_AUTO, maxholes, CTLFLAG_RW, tcp_sack_maxholes, 0, ==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_subr.c#35 (text+ko) ==== @@ -359,6 +359,8 @@ V_tcp_inflight_rttthresh = TCPTV_INFLIGHT_RTTTHRESH; tcp_finwait2_timeout = TCPTV_FINWAIT2_TIMEOUT; + TUNABLE_INT_FETCH("net.inet.tcp.sack.enable", &V_tcp_do_sack); + INP_INFO_LOCK_INIT(&V_tcbinfo, "tcp"); LIST_INIT(&V_tcb); V_tcbinfo.ipi_listhead = &V_tcb; ==== //depot/projects/vimage-commit2/src/sys/netinet6/in6_proto.c#16 (text+ko) ==== @@ -518,10 +518,6 @@ sysctl_ip6_tempvltime, "I", ""); SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_V6ONLY, v6only, CTLFLAG_RW, ip6_v6only, 0, ""); -#ifdef VIMAGE_GLOBALS -/* XXX REVISIT THIS ! */ -TUNABLE_INT("net.inet6.ip6.auto_linklocal", &ip6_auto_linklocal); -#endif SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_AUTO_LINKLOCAL, auto_linklocal, CTLFLAG_RW, ip6_auto_linklocal, 0, ""); SYSCTL_V_STRUCT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RIP6STATS, ==== //depot/projects/vimage-commit2/src/sys/netinet6/ip6_input.c#16 (text+ko) ==== @@ -176,6 +176,7 @@ #else V_ip6_auto_linklocal = 1; /* enable by default */ #endif + TUNABLE_INT_FETCH("net.inet6.ip6.auto_linklocal", &ip6_auto_linklocal); #ifndef IPV6FORWARDING #ifdef GATEWAY6