]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Move cached routes to fib_nh_common
authorDavid Ahern <dsahern@gmail.com>
Tue, 30 Apr 2019 14:45:48 +0000 (07:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 07:47:16 +0000 (00:47 -0700)
commit9f7158fcf19cff55a1948a803bbb4f728c8b3e11
treea4b83b7fd319fa38684689a82036998976b489c3
parent33727623d6774ee91b015b793d8652e30d15aa3f
ipv4: Move cached routes to fib_nh_common

While the cached routes, nh_pcpu_rth_output and nh_rth_input, are IPv4
specific, a later patch wants to make them accessible for IPv6 nexthops
with IPv4 routes using a fib6_nh. Move the cached routes from fib_nh to
fib_nh_common and update references.

Initialization of the cached entries is moved to fib_nh_common_init,
and free is moved to fib_nh_common_release.

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