On 6/16/20 9:38 PM, Guodeqing (A) wrote: > rt_set_nexthop in __mkroute_output will check the nh->nh_scope value to > determine whether to use the gw or not. > if (nh->nh_gw && nh->nh_scope == RT_SCOPE_LINK) { > rt->rt_gateway = nh->nh_gw; > rt->rt_uses_gateway = 1; > } > > (ip_route_output_key_hash-> ip_route_output_key_hash_rcu-> __mkroute_output-> > rt_set_nexthop) >
ok, I see now. Thanks. Reviewed-by: David Ahern <dsah...@gmail.com>