ipv6: Break up ip6_rt_copy()
authorMartin KaFai Lau <kafai@fb.com>
Sat, 23 May 2015 03:56:05 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 17:25:34 +0000 (13:25 -0400)
commit83a09abd1a8badbbb715f928d07c65ac47709c47
tree8473ad8665ac9f23947f0df29f601b1c8b6b1012
parent8d0b94afdca84598912347e61defa846a0988d04
ipv6: Break up ip6_rt_copy()

This patch breaks up ip6_rt_copy() into ip6_rt_copy_init() and
ip6_rt_cache_alloc().

In the later patch, we need to create a percpu rt6_info copy. Hence,
refactor the common rt6_info init codes to ip6_rt_copy_init().

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c