ipv6: Pull IPv6 GSO registration out of the module

Sing GSO support is now separate, pull it out of the module
and make it its own init call.
Remove the cleanup functions as they are no longer called.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vlad Yasevich 2012-11-15 08:49:22 +00:00 committed by David S. Miller
parent 808a8f8845
commit c6b641a4c6
12 changed files with 36 additions and 75 deletions

View file

@ -71,7 +71,6 @@
#include <linux/crypto.h>
#include <linux/scatterlist.h>
#include "ip6_offload.h"
static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb);
static void tcp_v6_reqsk_send_ack(struct sock *sk, struct sk_buff *skb,
@ -2007,13 +2006,9 @@ int __init tcpv6_init(void)
{
int ret;
ret = tcpv6_offload_init();
if (ret)
goto out;
ret = inet6_add_protocol(&tcpv6_protocol, IPPROTO_TCP);
if (ret)
goto out_offload;
goto out;
/* register inet6 protocol */
ret = inet6_register_protosw(&tcpv6_protosw);
@ -2030,8 +2025,6 @@ out_tcpv6_protosw:
inet6_unregister_protosw(&tcpv6_protosw);
out_tcpv6_protocol:
inet6_del_protocol(&tcpv6_protocol, IPPROTO_TCP);
out_offload:
tcpv6_offload_cleanup();
goto out;
}
@ -2040,5 +2033,4 @@ void tcpv6_exit(void)
unregister_pernet_subsys(&tcpv6_net_ops);
inet6_unregister_protosw(&tcpv6_protosw);
inet6_del_protocol(&tcpv6_protocol, IPPROTO_TCP);
tcpv6_offload_cleanup();
}