netns: add namespace parameter to rt_cache_flush

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Denis V. Lunev
2008-07-05 19:00:44 -07:00
committed by David S. Miller
parent f43798c276
commit 76e6ebfb40
8 changed files with 27 additions and 24 deletions

View File

@ -1197,7 +1197,7 @@ static int arp_netdev_event(struct notifier_block *this, unsigned long event, vo
switch (event) {
case NETDEV_CHANGEADDR:
neigh_changeaddr(&arp_tbl, dev);
rt_cache_flush(0);
rt_cache_flush(dev_net(dev), 0);
break;
default:
break;