]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50d4fe5c45cbc96898ff7b755c6fc5d907444a15
treef600bd8f17980fb8c2d3f3b97e5580593daa6789
parentf2a9fc86dcc1bc7a9ef32bcd2feb9d3dd288ed6f
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