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)
commit87063a1fa66740302f08add95ad3d4d316376bef
tree2d219cb64fec51eded714aa297d1fd37a5e146e6
parent0f457a36626fa94026e483836fbf29e451434567
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