ipv6: Add rt6_make_pcpu_route()
authorMartin KaFai Lau <kafai@fb.com>
Fri, 14 Aug 2015 18:05:53 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:28:03 +0000 (14:28 -0700)
commita73e4195636c17f310b8530643a576f42b82385f
tree084823d7d514bc015523526b8317ae05db15e629
parentad706862890171e02df1d7391b05599fb676ec18
ipv6: Add rt6_make_pcpu_route()

It is a prep work for fixing a potential deadlock when creating
a pcpu rt.

The current rt6_get_pcpu_route() will also create a pcpu rt if one does not
exist.  This patch moves the pcpu rt creation logic into another function,
rt6_make_pcpu_route().

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c