]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Pass fib_nh_common to rt_cache_route
authorDavid Ahern <dsahern@gmail.com>
Tue, 30 Apr 2019 14:45:49 +0000 (07:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 07:47:16 +0000 (00:47 -0700)
commit4ae244017a806f823039d80e3a12d145ad730902
tree2d219cb64fec51eded714aa297d1fd37a5e146e6
parent9f7158fcf19cff55a1948a803bbb4f728c8b3e11
ipv4: Pass fib_nh_common to rt_cache_route

Now that the cached routes are in fib_nh_common, pass it to
rt_cache_route and simplify its callers. For rt_set_nexthop,
the tclassid becomes the last user of fib_nh so move the
container_of under the #ifdef CONFIG_IP_ROUTE_CLASSID.

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