summaryrefslogtreecommitdiff
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-21 08:24:19 +0300
committerDavid S. Miller <davem@davemloft.net>2006-03-21 08:24:19 +0300
commit075ae86611011e1acdda9df6a7e30f8508b31fd6 (patch)
tree964bd1489ca16e3bbdc41a455b2a2db8e7801f2a /net/dccp/proto.c
parent0a1ec676ddbee712e1c1da679be4bdc529caf215 (diff)
downloadlinux-075ae86611011e1acdda9df6a7e30f8508b31fd6.tar.xz
[DCCP]: Move dccp_hashinfo from ipv4.c to the core
As it is used by both ipv4 and ipv6. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 64806fbf44de..3ba1ff435798 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -47,6 +47,14 @@ atomic_t dccp_orphan_count = ATOMIC_INIT(0);
EXPORT_SYMBOL_GPL(dccp_orphan_count);
+struct inet_hashinfo __cacheline_aligned dccp_hashinfo = {
+ .lhash_lock = RW_LOCK_UNLOCKED,
+ .lhash_users = ATOMIC_INIT(0),
+ .lhash_wait = __WAIT_QUEUE_HEAD_INITIALIZER(dccp_hashinfo.lhash_wait),
+};
+
+EXPORT_SYMBOL_GPL(dccp_hashinfo);
+
static struct net_protocol dccp_protocol = {
.handler = dccp_v4_rcv,
.err_handler = dccp_v4_err,