ipv4: Move exception bucket to nh_common
authorDavid Ahern <dsahern@gmail.com>
Tue, 30 Apr 2019 14:45:50 +0000 (07:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 07:47:16 +0000 (00:47 -0700)
commita5995e7107eb3d9c44744d3cf47d49fabfef01f5
tree4cdde0098637ed6a22c17ff1988f118fd8508e73
parent87063a1fa66740302f08add95ad3d4d316376bef
ipv4: Move exception bucket to nh_common

Similar to the cached routes, make IPv4 exceptions accessible when
using an IPv6 nexthop struct with IPv4 routes. Simplify the exception
functions by passing in fib_nh_common since that is all it needs,
and then cleanup the call sites that have extraneous fib_nh conversions.

As with the cached routes this is a change in location only, from fib_nh
up to fib_nh_common; no functional change intended.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c
net/ipv4/route.c