diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-09-21 13:01:41 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-09-24 09:34:33 +0900 |
commit | 58dbc6f2604a2cbff9e6ec144d1bb9d000a1a1ec (patch) | |
tree | 412bf37816eb9b73c8efe8ccdca4e3702e7da1a6 /net/netfilter/ipvs/ip_vs_proto_udp.c | |
parent | d484fc38124bc198b9285c80d709c9e4ee032085 (diff) | |
download | op-kernel-dev-58dbc6f2604a2cbff9e6ec144d1bb9d000a1a1ec.zip op-kernel-dev-58dbc6f2604a2cbff9e6ec144d1bb9d000a1a1ec.tar.gz |
ipvs: Store ipvs not net in struct ip_vs_conn
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 conn->net to access conn->ipvs->net instead.
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>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_proto_udp.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_proto_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_proto_udp.c b/net/netfilter/ipvs/ip_vs_proto_udp.c index f3aa821..3b0a2dc 100644 --- a/net/netfilter/ipvs/ip_vs_proto_udp.c +++ b/net/netfilter/ipvs/ip_vs_proto_udp.c @@ -400,7 +400,7 @@ udp_unregister_app(struct net *net, struct ip_vs_app *inc) static int udp_app_conn_bind(struct ip_vs_conn *cp) { - struct netns_ipvs *ipvs = net_ipvs(ip_vs_conn_net(cp)); + struct netns_ipvs *ipvs = cp->ipvs; int hash; struct ip_vs_app *inc; int result = 0; |