[IPVS]: Create synced connections with their real state
commitb209639e8a91aaabedf8bf3716710e6d9ae942e3
authorRumen G. Bogdanovski <rumen@voicecho.com>
Tue, 20 Nov 2007 05:53:27 +0000 (19 21:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:21 +0000 (28 14:54 -0800)
tree53614de391f67fab8fdbaf13d7d05306c17e9c76
parent7a4fbb1fa46e1a84c246e7bcd99bff45935bf114
[IPVS]: Create synced connections with their real state

With this patch the synced connections are created with their real state,
which can be changed on the next synchronizations if necessary. This way
on fail-over all the connections will be treated according to their actual
state, causing no scheduling problems (the active and the nonactive
connections have different weights in the schedulers).
The backwards compatibility is preserved and the existing tools will show
the true connection states even on the backup director.

Signed-off-by: Rumen G. Bogdanovski <rumen@voicecho.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipvs/ip_vs_conn.c
net/ipv4/ipvs/ip_vs_sync.c