aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_offload.c
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2012-11-15 03:49:22 -0500
committerDavid S. Miller <davem@davemloft.net>2012-11-15 17:39:24 -0500
commitc6b641a4c6b32f39db678c2441cb1ef824110d74 (patch)
tree251c4f988a2aca2b9b031afe192f3ae4705d3692 /net/ipv6/ip6_offload.c
parent808a8f884554f93315f663b2694addb4a177c578 (diff)
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>
Diffstat (limited to 'net/ipv6/ip6_offload.c')
-rw-r--r--net/ipv6/ip6_offload.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c
index 01cf9835a581..63d79d9005bd 100644
--- a/net/ipv6/ip6_offload.c
+++ b/net/ipv6/ip6_offload.c
@@ -12,6 +12,7 @@
12#include <linux/socket.h> 12#include <linux/socket.h>
13#include <linux/netdevice.h> 13#include <linux/netdevice.h>
14#include <linux/skbuff.h> 14#include <linux/skbuff.h>
15#include <linux/printk.h>
15 16
16#include <net/protocol.h> 17#include <net/protocol.h>
17#include <net/ipv6.h> 18#include <net/ipv6.h>
@@ -262,12 +263,18 @@ static struct packet_offload ipv6_packet_offload __read_mostly = {
262 .gro_complete = ipv6_gro_complete, 263 .gro_complete = ipv6_gro_complete,
263}; 264};
264 265
265void __init ipv6_offload_init(void) 266static int __init ipv6_offload_init(void)
266{ 267{
268
269 if (tcpv6_offload_init() < 0)
270 pr_crit("%s: Cannot add TCP protocol offload\n", __func__);
271 if (udp_offload_init() < 0)
272 pr_crit("%s: Cannot add UDP protocol offload\n", __func__);
273 if (ipv6_exthdrs_offload_init() < 0)
274 pr_crit("%s: Cannot add EXTHDRS protocol offload\n", __func__);
275
267 dev_add_offload(&ipv6_packet_offload); 276 dev_add_offload(&ipv6_packet_offload);
277 return 0;
268} 278}
269 279
270void ipv6_offload_cleanup(void) 280fs_initcall(ipv6_offload_init);
271{
272 dev_remove_offload(&ipv6_packet_offload);
273}