Commit 06b4fc52 authored by Gao Feng's avatar Gao Feng Committed by David S. Miller

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: default avatarGao Feng <fgao@ikuai8.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1514dc85
...@@ -1130,6 +1130,7 @@ static void fib_disable_ip(struct net_device *dev, unsigned long event, ...@@ -1130,6 +1130,7 @@ static void fib_disable_ip(struct net_device *dev, unsigned long event,
{ {
if (fib_sync_down_dev(dev, event, force)) if (fib_sync_down_dev(dev, event, force))
fib_flush(dev_net(dev)); fib_flush(dev_net(dev));
else
rt_cache_flush(dev_net(dev)); rt_cache_flush(dev_net(dev));
arp_ifdown(dev); arp_ifdown(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment