diff options
author | Alex Gartrell <agartrell@fb.com> | 2014-09-09 16:40:24 -0700 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-09-16 09:03:35 +0900 |
commit | 391f503d69779867f05e9296ae523e9002c2d7ee (patch) | |
tree | ea11f39010e2717afe43edb4a2644e51b81cd820 /include/net/ip_vs.h | |
parent | ba38528aae6ee2d22226c6a78727ddc13512b068 (diff) | |
download | blackbird-op-linux-391f503d69779867f05e9296ae523e9002c2d7ee.tar.gz blackbird-op-linux-391f503d69779867f05e9296ae523e9002c2d7ee.zip |
ipvs: prevent mixing heterogeneous pools and synchronization
The synchronization protocol is not compatible with heterogeneous pools, so
we need to verify that we're not turning both on at the same time.
Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 7600dbe5780e..576d7f0bed5d 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -990,6 +990,10 @@ struct netns_ipvs { char backup_mcast_ifn[IP_VS_IFNAME_MAXLEN]; /* net name space ptr */ struct net *net; /* Needed by timer routines */ + /* Number of heterogeneous destinations, needed because + * heterogeneous are not supported when synchronization is + * enabled */ + unsigned int mixed_address_family_dests; }; #define DEFAULT_SYNC_THRESHOLD 3 |