net/ipv6: Extract table lookup from ip6_pol_route
authorDavid Ahern <dsahern@gmail.com>
Thu, 10 May 2018 03:34:21 +0000 (20:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 May 2018 22:10:56 +0000 (00:10 +0200)
commit1d053da910947afccec96d90892c0f5488c7a9cf
treef442067352f034fadf90177ed8f3a605b7a4e596
parent3b290a31bbc5969f9193f73d547a6dc8a25c6f9e
net/ipv6: Extract table lookup from ip6_pol_route

ip6_pol_route is used for ingress and egress FIB lookups. Refactor it
moving the table lookup into a separate fib6_table_lookup that can be
invoked separately and export the new function.

ip6_pol_route now calls fib6_table_lookup and uses the result to generate
a dst based rt6_info.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/ip6_fib.h
net/ipv6/route.c