diff options
author | Denis V. Lunev <den@openvz.org> | 2008-10-07 17:49:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-07 17:49:36 -0400 |
commit | 0c7ed677fb7013c8028045d409a48ac42151187a (patch) | |
tree | 7449bac3fd2433b541da0d458cf0aecfb90451b8 /include/net/udp.h | |
parent | e43291cb37406dae405d50332eaa1ba2264c8dce (diff) |
netns: make udpv6 mib per/namespace
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index d38f6f2419f9..72f28c3ddaae 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -152,8 +152,6 @@ extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | |||
152 | __be32 daddr, __be16 dport, | 152 | __be32 daddr, __be16 dport, |
153 | int dif); | 153 | int dif); |
154 | 154 | ||
155 | DECLARE_SNMP_STAT(struct udp_mib, udp_stats_in6); | ||
156 | |||
157 | /* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */ | 155 | /* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */ |
158 | DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | 156 | DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); |
159 | 157 | ||
@@ -167,12 +165,14 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | |||
167 | if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_statistics, field); \ | 165 | if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_statistics, field); \ |
168 | else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) | 166 | else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) |
169 | 167 | ||
170 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { (void)net; \ | 168 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ |
171 | if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \ | 169 | if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \ |
172 | else SNMP_INC_STATS_BH(udp_stats_in6, field); } while(0) | 170 | else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \ |
173 | #define UDP6_INC_STATS_USER(net, field, is_udplite) do { (void)net; \ | 171 | } while(0) |
172 | #define UDP6_INC_STATS_USER(net, field, is_udplite) do { \ | ||
174 | if (is_udplite) SNMP_INC_STATS_USER(udplite_stats_in6, field); \ | 173 | if (is_udplite) SNMP_INC_STATS_USER(udplite_stats_in6, field); \ |
175 | else SNMP_INC_STATS_USER(udp_stats_in6, field); } while(0) | 174 | else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ |
175 | } while(0) | ||
176 | 176 | ||
177 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 177 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) |
178 | #define UDPX_INC_STATS_BH(sk, field) \ | 178 | #define UDPX_INC_STATS_BH(sk, field) \ |