diff options
Diffstat (limited to 'net/ipv4/fib_semantics.c')
| -rw-r--r-- | net/ipv4/fib_semantics.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index a57ba23571c9..d9fdcbae16ee 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -1230,7 +1230,7 @@ static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh,  	nh->fib_nh_dev = in_dev->dev;  	dev_hold_track(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, GFP_ATOMIC); -	nh->fib_nh_scope = RT_SCOPE_HOST; +	nh->fib_nh_scope = RT_SCOPE_LINK;  	if (!netif_carrier_ok(nh->fib_nh_dev))  		nh->fib_nh_flags |= RTNH_F_LINKDOWN;  	err = 0; @@ -1811,7 +1811,7 @@ int fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event,  			goto nla_put_failure;  		if (nexthop_is_blackhole(fi->nh))  			rtm->rtm_type = RTN_BLACKHOLE; -		if (!fi->fib_net->ipv4.sysctl_nexthop_compat_mode) +		if (!READ_ONCE(fi->fib_net->ipv4.sysctl_nexthop_compat_mode))  			goto offload;  	}  |