ipv4/route: arg delay is useless in rt_cache_flush()
Since route cache deletion (89aef8921b
), delay is no
more used. Remove it.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a1f6d8f771
commit
bafa6d9d89
7 changed files with 22 additions and 35 deletions
|
@ -1503,7 +1503,7 @@ static int devinet_conf_proc(ctl_table *ctl, int write,
|
|||
if (i == IPV4_DEVCONF_ACCEPT_LOCAL - 1 ||
|
||||
i == IPV4_DEVCONF_ROUTE_LOCALNET - 1)
|
||||
if ((new_value == 0) && (old_value != 0))
|
||||
rt_cache_flush(net, 0);
|
||||
rt_cache_flush(net);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -1537,7 +1537,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write,
|
|||
dev_disable_lro(idev->dev);
|
||||
}
|
||||
rtnl_unlock();
|
||||
rt_cache_flush(net, 0);
|
||||
rt_cache_flush(net);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1554,7 +1554,7 @@ static int ipv4_doint_and_flush(ctl_table *ctl, int write,
|
|||
struct net *net = ctl->extra2;
|
||||
|
||||
if (write && *valp != val)
|
||||
rt_cache_flush(net, 0);
|
||||
rt_cache_flush(net);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue