Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1130,6 +1130,7 @@ 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));
	else
		rt_cache_flush(dev_net(dev));
	arp_ifdown(dev);
}