]> 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)
commit11095bc125350d3f7bc9e6f7ebc9650a6f4d5802
tree4cdde0098637ed6a22c17ff1988f118fd8508e73
parenta6b351de1f7cb10519629714c0d977fcaf1b66ec
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