ipv6: Move common init code for rt6_info to a new function rt6_info_init()
authorMartin KaFai Lau <kafai@fb.com>
Thu, 15 Oct 2015 23:39:57 +0000 (16:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 07:39:14 +0000 (00:39 -0700)
commitebfa45f0d952e5e7bb30a7f9daaad681de138728
treef600bd8f17980fb8c2d3f3b97e5580593daa6789
parent53ca376eec4eb635e2249c8e89093f499e180731
ipv6: Move common init code for rt6_info to a new function rt6_info_init()

Introduce rt6_info_init() to do the common init work for
'struct rt6_info' (after calling dst_alloc).

It is a prep work to fix the rt6_info init logic in the
ip6_blackhole_route().

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