svn commit: r187206 - user/kmacy/HEAD_fast_net/sys/netinet

Kip Macy kmacy at FreeBSD.org
Tue Jan 13 17:35:09 PST 2009


Author: kmacy
Date: Wed Jan 14 01:35:08 2009
New Revision: 187206
URL: http://svn.freebsd.org/changeset/base/187206

Log:
  - include opt_mpath.h so that RADIX_MPATH will be pulled in
  - remove locking overhead to forwarding workloads by making forwarding table pcpu

Modified:
  user/kmacy/HEAD_fast_net/sys/netinet/ip_input.c

Modified: user/kmacy/HEAD_fast_net/sys/netinet/ip_input.c
==============================================================================
--- user/kmacy/HEAD_fast_net/sys/netinet/ip_input.c	Tue Jan 13 23:57:15 2009	(r187205)
+++ user/kmacy/HEAD_fast_net/sys/netinet/ip_input.c	Wed Jan 14 01:35:08 2009	(r187206)
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
 #include "opt_ipsec.h"
 #include "opt_mac.h"
 #include "opt_carp.h"
+#include "opt_mpath.h"	
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -339,7 +340,7 @@ ip_init(void)
 	netisr_register(NETISR_IP, ip_input, &ipintrq, 0);
 
 	ipv4_ft = flowtable_alloc(ip_pcpu_flowtable_size, FL_PCPU);
-	ipv4_forward_ft = flowtable_alloc(ip_global_flowtable_size, FL_HASH_PORTS);	
+	ipv4_forward_ft = flowtable_alloc(ip_global_flowtable_size, FL_HASH_PORTS|FL_PCPU);
 }
 
 void


More information about the svn-src-user mailing list