diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-06 00:18:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-06 00:18:48 -0400 |
commit | 0283328e2360bbf3081e97f1b720dd4c4dbae111 (patch) | |
tree | d0734e59c0900b3389ddcf469950715e60f537b4 /include/net/udp.h | |
parent | 629ca23c331ec75ac87b016debbb3c4d2fe62650 (diff) |
MIB: add struct net to UDP_INC_STATS_BH
Two special cases here - one is rxrpc - I put init_net there
explicitly, since we haven't touched this part yet. The second
place is in __udp4_lib_rcv - we already have a struct net there,
but I have to move its initialization above to make it ready
at the "drop" label.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 13319094b134..7b18cfb2fe0b 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -161,7 +161,7 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | |||
161 | #define UDP_INC_STATS_USER(net, field, is_udplite) do { (void)net; \ | 161 | #define UDP_INC_STATS_USER(net, field, is_udplite) do { (void)net; \ |
162 | if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \ | 162 | if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \ |
163 | else SNMP_INC_STATS_USER(udp_statistics, field); } while(0) | 163 | else SNMP_INC_STATS_USER(udp_statistics, field); } while(0) |
164 | #define UDP_INC_STATS_BH(field, is_udplite) do { \ | 164 | #define UDP_INC_STATS_BH(net, field, is_udplite) do { (void)net; \ |
165 | if (is_udplite) SNMP_INC_STATS_BH(udplite_statistics, field); \ | 165 | if (is_udplite) SNMP_INC_STATS_BH(udplite_statistics, field); \ |
166 | else SNMP_INC_STATS_BH(udp_statistics, field); } while(0) | 166 | else SNMP_INC_STATS_BH(udp_statistics, field); } while(0) |
167 | 167 | ||
@@ -176,12 +176,12 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | |||
176 | #define UDPX_INC_STATS_BH(sk, field) \ | 176 | #define UDPX_INC_STATS_BH(sk, field) \ |
177 | do { \ | 177 | do { \ |
178 | if ((sk)->sk_family == AF_INET) \ | 178 | if ((sk)->sk_family == AF_INET) \ |
179 | UDP_INC_STATS_BH(field, 0); \ | 179 | UDP_INC_STATS_BH(sock_net(sk), field, 0); \ |
180 | else \ | 180 | else \ |
181 | UDP6_INC_STATS_BH(field, 0); \ | 181 | UDP6_INC_STATS_BH(field, 0); \ |
182 | } while (0); | 182 | } while (0); |
183 | #else | 183 | #else |
184 | #define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(field, 0) | 184 | #define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0) |
185 | #endif | 185 | #endif |
186 | 186 | ||
187 | /* /proc */ | 187 | /* /proc */ |