]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07b72df1a718be040464cd5a2dbd5b8db11ebb5a
tree4cdde0098637ed6a22c17ff1988f118fd8508e73
parent4ae244017a806f823039d80e3a12d145ad730902
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