Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gao Feng and committed by
David S. Miller
06b4fc52 1514dc85

+2 -1
+2 -1
net/ipv4/fib_frontend.c
··· 1130 1130 { 1131 1131 if (fib_sync_down_dev(dev, event, force)) 1132 1132 fib_flush(dev_net(dev)); 1133 - rt_cache_flush(dev_net(dev)); 1133 + else 1134 + rt_cache_flush(dev_net(dev)); 1134 1135 arp_ifdown(dev); 1135 1136 } 1136 1137