projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1514dc8
)
net: fib: Decrease one unnecessary rt cache flush in fib_disable_ip
author
Gao Feng
<fgao@ikuai8.com>
Wed, 26 Apr 2017 11:04:04 +0000
(19:04 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 27 Apr 2017 20:33:30 +0000
(16:33 -0400)
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>
net/ipv4/fib_frontend.c
patch
|
blob
|
history
diff --git
a/net/ipv4/fib_frontend.c
b/net/ipv4/fib_frontend.c
index 5a0e456b5d5897ff490d3f26748b49bd34785329..39bd1edee67649af86eb582c0ea478713360a506 100644
(file)
--- a/
net/ipv4/fib_frontend.c
+++ b/
net/ipv4/fib_frontend.c
@@
-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);
}