Commit 7c08d78e6f122039ab98edf74c3c7b4b15c9fa1d

Authored by Eric W. Biederman
Committed by Simon Horman
1 parent 20868a40d0

ipvs: Better derivation of ipvs in ip_vs_in_stats and ip_vs_out_stats

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

net/netfilter/ipvs/ip_vs_core.c
... ... @@ -112,7 +112,7 @@
112 112 ip_vs_in_stats(struct ip_vs_conn *cp, struct sk_buff *skb)
113 113 {
114 114 struct ip_vs_dest *dest = cp->dest;
115   - struct netns_ipvs *ipvs = net_ipvs(skb_net(skb));
  115 + struct netns_ipvs *ipvs = cp->ipvs;
116 116  
117 117 if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) {
118 118 struct ip_vs_cpu_stats *s;
... ... @@ -146,7 +146,7 @@
146 146 ip_vs_out_stats(struct ip_vs_conn *cp, struct sk_buff *skb)
147 147 {
148 148 struct ip_vs_dest *dest = cp->dest;
149   - struct netns_ipvs *ipvs = net_ipvs(skb_net(skb));
  149 + struct netns_ipvs *ipvs = cp->ipvs;
150 150  
151 151 if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) {
152 152 struct ip_vs_cpu_stats *s;