]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Prepare for fib6_nh from a nexthop object
authorDavid Ahern <dsahern@gmail.com>
Tue, 4 Jun 2019 03:19:50 +0000 (20:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2019 02:26:49 +0000 (19:26 -0700)
commit5828a9bc7f2e1256cea4ca8a8938ff364ea0f26f
tree29cc881d4f6e2d476a296562bdcb21c0f7f515e2
parent47c7a843a4cf2b3e4f313a1bcfffe44a5bf91ac6
ipv4: Prepare for fib6_nh from a nexthop object

Convert more IPv4 code to use fib_nh_common over fib_nh to enable routes
to use a fib6_nh based nexthop. In the end, only code not using a
nexthop object in a fib_info should directly access fib_nh in a fib_info
without checking the famiy and going through fib_nh_common. Those
functions will be marked when it is not directly evident.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_rules.c
net/ipv4/fib_semantics.c
net/ipv4/fib_trie.c
net/ipv4/nexthop.c
net/ipv4/route.c