diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-20 20:16:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 20:16:17 -0500 |
commit | 9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4 (patch) | |
tree | 57a33bb4ed32384a95e2c23d7039e8ed99c5b595 /net/dccp/proto.c | |
parent | fa23e2ecd30a584cdcb9b3de0149dbb5c073c20b (diff) |
[DCCP] ackvec: Introduce dccp_ackvec_slab
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.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 568d266ee379..81ad24953710 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -877,11 +877,17 @@ static int __init dccp_init(void) | |||
877 | 877 | ||
878 | inet_register_protosw(&dccp_v4_protosw); | 878 | inet_register_protosw(&dccp_v4_protosw); |
879 | 879 | ||
880 | rc = dccp_ctl_sock_init(); | 880 | rc = dccp_ackvec_init(); |
881 | if (rc) | 881 | if (rc) |
882 | goto out_unregister_protosw; | 882 | goto out_unregister_protosw; |
883 | |||
884 | rc = dccp_ctl_sock_init(); | ||
885 | if (rc) | ||
886 | goto out_ackvec_exit; | ||
883 | out: | 887 | out: |
884 | return rc; | 888 | return rc; |
889 | out_ackvec_exit: | ||
890 | dccp_ackvec_exit(); | ||
885 | out_unregister_protosw: | 891 | out_unregister_protosw: |
886 | inet_unregister_protosw(&dccp_v4_protosw); | 892 | inet_unregister_protosw(&dccp_v4_protosw); |
887 | inet_del_protocol(&dccp_protocol, IPPROTO_DCCP); | 893 | inet_del_protocol(&dccp_protocol, IPPROTO_DCCP); |
@@ -923,6 +929,7 @@ static void __exit dccp_fini(void) | |||
923 | sizeof(struct inet_ehash_bucket))); | 929 | sizeof(struct inet_ehash_bucket))); |
924 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); | 930 | kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); |
925 | proto_unregister(&dccp_prot); | 931 | proto_unregister(&dccp_prot); |
932 | dccp_ackvec_exit(); | ||
926 | } | 933 | } |
927 | 934 | ||
928 | module_init(dccp_init); | 935 | module_init(dccp_init); |