Eric Dumazet 4ece900977 sit: fix sit0 percpu double allocations
sit0 device allocates its percpu storage twice :
- One time in ipip6_tunnel_init()
- One time in ipip6_fb_tunnel_init()

Thus we leak 48 bytes per possible cpu per network namespace dismantle.

ipip6_fb_tunnel_init() can be much simpler and does not
return an error, and should be called after register_netdev()

Note that ipip6_tunnel_clone_6rd() also needs to be called
after register_netdev() (calling ipip6_tunnel_init())

Fixes: ebe084aafb7e ("sit: Use ipip6_tunnel_init as the ndo_init function.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-02 22:54:45 -05:00
..
2015-08-30 18:12:36 -04:00
2015-03-02 16:43:41 -05:00
2015-10-22 19:39:25 -07:00
2015-03-06 21:50:02 -05:00
2015-10-23 03:05:19 -07:00
2015-08-31 12:45:09 -07:00
2015-09-23 14:33:55 -07:00
2015-10-15 13:44:35 -07:00
2015-10-22 18:26:29 -07:00