diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-16 23:20:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-16 23:20:33 -0400 |
commit | c5346fe396f5e22bbfb3ec037c43891c3c57d3e6 (patch) | |
tree | 9252111b8b89e86e980a5af0055c696796cdfc12 | |
parent | 7c73a6faffae0bfae70639113aecf06af666e714 (diff) |
mib: add net to IP_ADD_STATS_BH
Very simple - only ip_evictor (fragments) requires such.
This patch ends up the IP_XXX_STATS patching.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/ip.h | 2 | ||||
-rw-r--r-- | net/ipv4/ip_fragment.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 9973ce08d8fd..93d0e093ff49 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -159,7 +159,7 @@ extern struct ipv4_config ipv4_config; | |||
159 | DECLARE_SNMP_STAT(struct ipstats_mib, ip_statistics); | 159 | DECLARE_SNMP_STAT(struct ipstats_mib, ip_statistics); |
160 | #define IP_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(ip_statistics, field); } while (0) | 160 | #define IP_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(ip_statistics, field); } while (0) |
161 | #define IP_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(ip_statistics, field); } while (0) | 161 | #define IP_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(ip_statistics, field); } while (0) |
162 | #define IP_ADD_STATS_BH(field, val) SNMP_ADD_STATS_BH(ip_statistics, field, val) | 162 | #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS_BH(ip_statistics, field, val) |
163 | DECLARE_SNMP_STAT(struct linux_mib, net_statistics); | 163 | DECLARE_SNMP_STAT(struct linux_mib, net_statistics); |
164 | #define NET_INC_STATS(field) SNMP_INC_STATS(net_statistics, field) | 164 | #define NET_INC_STATS(field) SNMP_INC_STATS(net_statistics, field) |
165 | #define NET_INC_STATS_BH(field) SNMP_INC_STATS_BH(net_statistics, field) | 165 | #define NET_INC_STATS_BH(field) SNMP_INC_STATS_BH(net_statistics, field) |
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 65364c06ada5..38d38f058018 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -178,7 +178,7 @@ static void ip_evictor(struct net *net) | |||
178 | 178 | ||
179 | evicted = inet_frag_evictor(&net->ipv4.frags, &ip4_frags); | 179 | evicted = inet_frag_evictor(&net->ipv4.frags, &ip4_frags); |
180 | if (evicted) | 180 | if (evicted) |
181 | IP_ADD_STATS_BH(IPSTATS_MIB_REASMFAILS, evicted); | 181 | IP_ADD_STATS_BH(net, IPSTATS_MIB_REASMFAILS, evicted); |
182 | } | 182 | } |
183 | 183 | ||
184 | /* | 184 | /* |