diff options
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 3e551592aa76..ba5544152708 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -148,7 +148,6 @@ extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, | |||
148 | char __user *optval, int optlen, | 148 | char __user *optval, int optlen, |
149 | int (*push_pending_frames)(struct sock *)); | 149 | int (*push_pending_frames)(struct sock *)); |
150 | 150 | ||
151 | DECLARE_SNMP_STAT(struct udp_mib, udp_statistics); | ||
152 | DECLARE_SNMP_STAT(struct udp_mib, udp_stats_in6); | 151 | DECLARE_SNMP_STAT(struct udp_mib, udp_stats_in6); |
153 | 152 | ||
154 | /* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */ | 153 | /* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */ |
@@ -158,12 +157,12 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | |||
158 | /* | 157 | /* |
159 | * SNMP statistics for UDP and UDP-Lite | 158 | * SNMP statistics for UDP and UDP-Lite |
160 | */ | 159 | */ |
161 | #define UDP_INC_STATS_USER(net, field, is_udplite) do { (void)net; \ | 160 | #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ |
162 | if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \ | 161 | if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \ |
163 | else SNMP_INC_STATS_USER(udp_statistics, field); } while(0) | 162 | else SNMP_INC_STATS_USER((net)->mib.udp_statistics, field); } while(0) |
164 | #define UDP_INC_STATS_BH(net, field, is_udplite) do { (void)net; \ | 163 | #define UDP_INC_STATS_BH(net, field, is_udplite) do { \ |
165 | if (is_udplite) SNMP_INC_STATS_BH(udplite_statistics, field); \ | 164 | if (is_udplite) SNMP_INC_STATS_BH(udplite_statistics, field); \ |
166 | else SNMP_INC_STATS_BH(udp_statistics, field); } while(0) | 165 | else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) |
167 | 166 | ||
168 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { (void)net; \ | 167 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { (void)net; \ |
169 | if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \ | 168 | if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \ |