]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80b6813a3f8baf586370f2eefc95e09bb16206c8
treef442067352f034fadf90177ed8f3a605b7a4e596
parent2db75d048b33f1fbb4f3685048a37cc5f3003389
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