ipvs: Store ipvs not net in struct ip_vs_conn_param
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 21 Sep 2015 18:01:42 +0000 (13:01 -0500)
committerSimon Horman <horms@verge.net.au>
Thu, 24 Sep 2015 00:34:33 +0000 (09:34 +0900)
commite64e2b460cedadf93d05a23e9ad397cc0386568c
treeeb54dd524e1bd5b4dba768cb631554a1d8cb722b
parent58dbc6f2604a2cbff9e6ec144d1bb9d000a1a1ec
ipvs: Store ipvs not net in struct ip_vs_conn_param

In practice struct netns_ipvs is as meaningful as struct net and more
useful as it holds the ipvs specific data.  So store a pointer to
struct netns_ipvs.

Update the accesses of param->net to access param->ipvs->net instead.

When lookup up struct ip_vs_conn in a hash table replace comparisons
of cp->net with comparisons of cp->ipvs which is possible
now that ipvs is present in ip_vs_conn_param.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_conn.c