[SSI] openssi/kernel/net/ipv4/ipvs ip_vs_core.c,1.3,1.4

Roger Tsang <[email protected]> Wed, 18 Dec 2013 07:31:25 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/net/ipv4/ipvs
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8826/net/ipv4/ipvs

Modified Files:
      Tag: OPENSSI-FC
	ip_vs_core.c 
Log Message:
ip_vs_in_icmp: bypass IPVS when sysctl_ip_vs_loadbalance is not set.


Index: ip_vs_core.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/net/ipv4/ipvs/ip_vs_core.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ip_vs_core.c	7 Aug 2007 03:06:15 -0000	1.3
+++ ip_vs_core.c	18 Dec 2013 07:31:23 -0000	1.4
@@ -852,6 +852,15 @@
 
 	*related = 1;
 
+#ifdef CONFIG_SSI
+	/*
+	* Accept the packet if /proc/sys/net/ipv4/vs/loadbalancing
+	* is 1
+	*/
+	if (!sysctl_ip_vs_loadbalance)
+		return NF_ACCEPT;
+#endif
+
 	/* reassemble IP fragments */
 	if (skb->nh.iph->frag_off & __constant_htons(IP_MF|IP_OFFSET)) {
 		skb = ip_vs_gather_frags(skb,


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk