ipv6: Refactor common ip6gre_tunnel_init codes
authorMartin KaFai Lau <kafai@fb.com>
Tue, 15 Sep 2015 21:30:05 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 21:53:04 +0000 (14:53 -0700)
commita3c119d392d7d7c68865fe76f5732ca9b8164d68
tree1fe4dfa29c0e14c0fe0b97807633a9d81238ffb1
parente8684c88774c0ddfeefdbed0aa469b25b9962f3e
ipv6: Refactor common ip6gre_tunnel_init codes

It is a prep work to fix the dst_entry refcnt bugs in ip6_tunnel.

This patch refactors some common init codes used by both
ip6gre_tunnel_init and ip6gre_tap_init.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c