mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
net: fib: Decrease one unnecessary rt cache flush in fib_disable_ip
The func fib_flush already flushes the rt cache if necessary, so it is not necessary to invoke rt_cache_flush again in fib_disable_ip. Signed-off-by: Gao Feng <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1514dc857f
commit
06b4fc520d
1 changed files with 2 additions and 1 deletions
|
|
@ -1130,7 +1130,8 @@ static void fib_disable_ip(struct net_device *dev, unsigned long event,
|
|||
{
|
||||
if (fib_sync_down_dev(dev, event, force))
|
||||
fib_flush(dev_net(dev));
|
||||
rt_cache_flush(dev_net(dev));
|
||||
else
|
||||
rt_cache_flush(dev_net(dev));
|
||||
arp_ifdown(dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue