MIB: add struct net to UDP_INC_STATS_USER
Nothing special - all the places already have a struct sock at hands, so use the sock_net() net. 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
4ce2417bfb
commit
629ca23c33
@@ -158,7 +158,7 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
|
||||
/*
|
||||
* SNMP statistics for UDP and UDP-Lite
|
||||
*/
|
||||
#define UDP_INC_STATS_USER(field, is_udplite) do { \
|
||||
#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 { \
|
||||
|
||||
Reference in New Issue
Block a user