]> asedeno.scripts.mit.edu Git - linux.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)
commitdcb1ecb50edf8219c3bd851de35897fb024c423b
tree29cc881d4f6e2d476a296562bdcb21c0f7f515e2
parent5481d73f81549e2a05cbbb49867a9a560c5292df
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