]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c5cf23114f67122b9b6e441d32a3ef6a59d0ea5
tree084823d7d514bc015523526b8317ae05db15e629
parente60525ffca4a41346e0b9df92178bccc4bf68061
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