aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index bdf784c422b5..8b63394ec24c 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -44,12 +44,7 @@ atomic_t dccp_orphan_count = ATOMIC_INIT(0);
44 44
45EXPORT_SYMBOL_GPL(dccp_orphan_count); 45EXPORT_SYMBOL_GPL(dccp_orphan_count);
46 46
47struct inet_hashinfo __cacheline_aligned dccp_hashinfo = { 47struct inet_hashinfo dccp_hashinfo;
48 .lhash_lock = RW_LOCK_UNLOCKED,
49 .lhash_users = ATOMIC_INIT(0),
50 .lhash_wait = __WAIT_QUEUE_HEAD_INITIALIZER(dccp_hashinfo.lhash_wait),
51};
52
53EXPORT_SYMBOL_GPL(dccp_hashinfo); 48EXPORT_SYMBOL_GPL(dccp_hashinfo);
54 49
55/* the maximum queue length for tx in packets. 0 is no limit */ 50/* the maximum queue length for tx in packets. 0 is no limit */
@@ -1030,6 +1025,7 @@ static int __init dccp_init(void)
1030 BUILD_BUG_ON(sizeof(struct dccp_skb_cb) > 1025 BUILD_BUG_ON(sizeof(struct dccp_skb_cb) >
1031 FIELD_SIZEOF(struct sk_buff, cb)); 1026 FIELD_SIZEOF(struct sk_buff, cb));
1032 1027
1028 inet_hashinfo_init(&dccp_hashinfo);
1033 dccp_hashinfo.bind_bucket_cachep = 1029 dccp_hashinfo.bind_bucket_cachep =
1034 kmem_cache_create("dccp_bind_bucket", 1030 kmem_cache_create("dccp_bind_bucket",
1035 sizeof(struct inet_bind_bucket), 0, 1031 sizeof(struct inet_bind_bucket), 0,