diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-28 23:49:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 23:49:44 -0500 |
commit | 9de8f76d200342f1e9495861c2c9ce87a6bc26d0 (patch) | |
tree | 0f7772306b8e412885b2f13cc555d6b19464d62a | |
parent | be162d6288053305c32588c0596eb5e8dd90c564 (diff) |
[NETNS]: DST cleanup routines should be called inside namespace.
Device inside the namespace can be started and downed. So, active routing
cache should be cleaned up on device stop.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/dst.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 7deef483c79f..3a01a819ba47 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -295,9 +295,6 @@ static int dst_dev_event(struct notifier_block *this, unsigned long event, void | |||
295 | struct net_device *dev = ptr; | 295 | struct net_device *dev = ptr; |
296 | struct dst_entry *dst, *last = NULL; | 296 | struct dst_entry *dst, *last = NULL; |
297 | 297 | ||
298 | if (dev->nd_net != &init_net) | ||
299 | return NOTIFY_DONE; | ||
300 | |||
301 | switch (event) { | 298 | switch (event) { |
302 | case NETDEV_UNREGISTER: | 299 | case NETDEV_UNREGISTER: |
303 | case NETDEV_DOWN: | 300 | case NETDEV_DOWN: |