diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-14 14:25:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:06 -0500 |
commit | 9055e051b8d4b266054fe511a65a9888d30fa64f (patch) | |
tree | d42c5bf77ec53aff70d8be3df875789db2112774 /net/ipv4 | |
parent | 8d614434ab77b440b69e66a9bd44e46e7194c34a (diff) |
[UDP]: Move udp_stats_in6 into net/ipv4/udp.c
Now that external users may increment the counters directly, we need
to ensure that udp_stats_in6 is always available. Otherwise we'd
either have to requrie the external users to be built as modules or
ipv6 to be built-in.
This isn't too bad because udp_stats_in6 is just a pair of pointers
plus an EXPORT, e.g., just 40 (16 + 24) bytes on x86-64.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/udp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 9ed6393c65d9..3d6021585658 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -112,6 +112,9 @@ | |||
112 | DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly; | 112 | DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly; |
113 | EXPORT_SYMBOL(udp_statistics); | 113 | EXPORT_SYMBOL(udp_statistics); |
114 | 114 | ||
115 | DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6) __read_mostly; | ||
116 | EXPORT_SYMBOL(udp_stats_in6); | ||
117 | |||
115 | struct hlist_head udp_hash[UDP_HTABLE_SIZE]; | 118 | struct hlist_head udp_hash[UDP_HTABLE_SIZE]; |
116 | DEFINE_RWLOCK(udp_hash_lock); | 119 | DEFINE_RWLOCK(udp_hash_lock); |
117 | 120 | ||