]> 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)
commita6b351de1f7cb10519629714c0d977fcaf1b66ec
tree2d219cb64fec51eded714aa297d1fd37a5e146e6
parent27328b70b5afb00462e09c68b7b502734f53e14f
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