You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
David S. Miller
parent
629ca23c33
commit
0283328e23
+3
-3
@@ -161,7 +161,7 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
|
||||
#define UDP_INC_STATS_USER(net, field, is_udplite) do { (void)net; \
|
||||
if (is_udplite) SNMP_INC_STATS_USER(udplite_statistics, field); \
|
||||
else SNMP_INC_STATS_USER(udp_statistics, field); } while(0)
|
||||
#define UDP_INC_STATS_BH(field, is_udplite) do { \
|
||||
#define UDP_INC_STATS_BH(net, field, is_udplite) do { (void)net; \
|
||||
if (is_udplite) SNMP_INC_STATS_BH(udplite_statistics, field); \
|
||||
else SNMP_INC_STATS_BH(udp_statistics, field); } while(0)
|
||||
|
||||
@@ -176,12 +176,12 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
|
||||
#define UDPX_INC_STATS_BH(sk, field) \
|
||||
do { \
|
||||
if ((sk)->sk_family == AF_INET) \
|
||||
UDP_INC_STATS_BH(field, 0); \
|
||||
UDP_INC_STATS_BH(sock_net(sk), field, 0); \
|
||||
else \
|
||||
UDP6_INC_STATS_BH(field, 0); \
|
||||
} while (0);
|
||||
#else
|
||||
#define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(field, 0)
|
||||
#define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0)
|
||||
#endif
|
||||
|
||||
/* /proc */
|
||||
|
||||
Reference in New Issue
Block a user