From owner-svn-src-user@FreeBSD.ORG Mon Feb 8 05:39:32 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD0EA106566C; Mon, 8 Feb 2010 05:39:32 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 937DE8FC22; Mon, 8 Feb 2010 05:39:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o185dW5m047948; Mon, 8 Feb 2010 05:39:32 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o185dW6l047944; Mon, 8 Feb 2010 05:39:32 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <201002080539.o185dW6l047944@svn.freebsd.org> From: Kip Macy Date: Mon, 8 Feb 2010 05:39:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203652 - user/kmacy/head_flowtable_v6/sys/netinet6 X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 05:39:32 -0000 Author: kmacy Date: Mon Feb 8 05:39:32 2010 New Revision: 203652 URL: http://svn.freebsd.org/changeset/base/203652 Log: - add opt_route.h so that FLOWTABLE can be defined - shuffle variables and fix call to flowtable_alloc Modified: user/kmacy/head_flowtable_v6/sys/netinet6/in6_proto.c user/kmacy/head_flowtable_v6/sys/netinet6/ip6_input.c user/kmacy/head_flowtable_v6/sys/netinet6/ip6_output.c Modified: user/kmacy/head_flowtable_v6/sys/netinet6/in6_proto.c ============================================================================== --- user/kmacy/head_flowtable_v6/sys/netinet6/in6_proto.c Mon Feb 8 05:13:08 2010 (r203651) +++ user/kmacy/head_flowtable_v6/sys/netinet6/in6_proto.c Mon Feb 8 05:39:32 2010 (r203652) @@ -70,6 +70,7 @@ __FBSDID("$FreeBSD$"); #include "opt_carp.h" #include "opt_sctp.h" #include "opt_mpath.h" +#include "opt_route.h" #include #include @@ -130,6 +131,10 @@ __FBSDID("$FreeBSD$"); #include +#ifdef FLOWTABLE +#include +#endif + /* * TCP/IP protocol family: IP6, ICMP6, UDP, TCP. */ @@ -547,7 +552,7 @@ SYSCTL_VNET_INT(_net_inet6_ip6, IPV6CTL_ #endif #ifdef FLOWTABLE -static VNET_DEFINE(int, ip6_output_flowtable_size) = 2048; +VNET_DEFINE(int, ip6_output_flowtable_size) = 2048; VNET_DEFINE(struct flowtable *, ip6_ft); #define V_ip6_output_flowtable_size VNET(ip6_output_flowtable_size) Modified: user/kmacy/head_flowtable_v6/sys/netinet6/ip6_input.c ============================================================================== --- user/kmacy/head_flowtable_v6/sys/netinet6/ip6_input.c Mon Feb 8 05:13:08 2010 (r203651) +++ user/kmacy/head_flowtable_v6/sys/netinet6/ip6_input.c Mon Feb 8 05:39:32 2010 (r203652) @@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_route.h" #include #include @@ -113,6 +114,12 @@ __FBSDID("$FreeBSD$"); #include +#ifdef FLOWTABLE +#include +extern VNET_DEFINE(int, ip6_output_flowtable_size); +#define V_ip6_output_flowtable_size VNET(ip6_output_flowtable_size) +#endif + extern struct domain inet6domain; u_char ip6_protox[IPPROTO_MAX]; @@ -195,7 +202,7 @@ ip6_init(void) #ifdef FLOWTABLE TUNABLE_INT_FETCH("net.inet6.ip6.output_flowtable_size", &V_ip6_output_flowtable_size); - V_ip6_ft = flowtable_alloc(V_ip6_output_flowtable_size, FL_PCPU); + V_ip6_ft = flowtable_alloc("ipv6", V_ip6_output_flowtable_size, FL_PCPU); #endif V_ip6_forwarding = IPV6FORWARDING; /* act as router? */ V_ip6_sendredirects = IPV6_SENDREDIRECTS; Modified: user/kmacy/head_flowtable_v6/sys/netinet6/ip6_output.c ============================================================================== --- user/kmacy/head_flowtable_v6/sys/netinet6/ip6_output.c Mon Feb 8 05:13:08 2010 (r203651) +++ user/kmacy/head_flowtable_v6/sys/netinet6/ip6_output.c Mon Feb 8 05:39:32 2010 (r203652) @@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_route.h" #include #include @@ -106,6 +107,10 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef FLOWTABLE +#include +#endif + extern int in6_mcast_loop; struct ip6_exthdrs {