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>
This commit is contained in:
parent
20868a40d0
commit
7c08d78e6f
|
@ -112,7 +112,7 @@ static inline void
|
|||
ip_vs_in_stats(struct ip_vs_conn *cp, struct sk_buff *skb)
|
||||
{
|
||||
struct ip_vs_dest *dest = cp->dest;
|
||||
struct netns_ipvs *ipvs = net_ipvs(skb_net(skb));
|
||||
struct netns_ipvs *ipvs = cp->ipvs;
|
||||
|
||||
if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) {
|
||||
struct ip_vs_cpu_stats *s;
|
||||
|
@ -146,7 +146,7 @@ static inline void
|
|||
ip_vs_out_stats(struct ip_vs_conn *cp, struct sk_buff *skb)
|
||||
{
|
||||
struct ip_vs_dest *dest = cp->dest;
|
||||
struct netns_ipvs *ipvs = net_ipvs(skb_net(skb));
|
||||
struct netns_ipvs *ipvs = cp->ipvs;
|
||||
|
||||
if (dest && (dest->flags & IP_VS_DEST_F_AVAILABLE)) {
|
||||
struct ip_vs_cpu_stats *s;
|
||||
|
|
Loading…
Reference in New Issue