netns: make uplitev6 mib per/namespace
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -152,9 +152,6 @@ extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
|
||||
__be32 daddr, __be16 dport,
|
||||
int dif);
|
||||
|
||||
/* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */
|
||||
DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
|
||||
|
||||
/*
|
||||
* SNMP statistics for UDP and UDP-Lite
|
||||
*/
|
||||
@@ -166,12 +163,12 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
|
||||
else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0)
|
||||
|
||||
#define UDP6_INC_STATS_BH(net, field, is_udplite) do { \
|
||||
if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \
|
||||
if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_stats_in6, field);\
|
||||
else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \
|
||||
} while(0)
|
||||
#define UDP6_INC_STATS_USER(net, field, is_udplite) do { \
|
||||
if (is_udplite) SNMP_INC_STATS_USER(udplite_stats_in6, field); \
|
||||
else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \
|
||||
#define UDP6_INC_STATS_USER(net, field, __lite) do { \
|
||||
if (__lite) SNMP_INC_STATS_USER((net)->mib.udplite_stats_in6, field); \
|
||||
else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \
|
||||
} while(0)
|
||||
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
|
在新工单中引用
屏蔽一个用户