[NETNS]: DST cleanup routines should be called inside namespace.
authorDenis V. Lunev <den@openvz.org>
Fri, 29 Feb 2008 04:49:44 +0000 (20:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 04:49:44 +0000 (20:49 -0800)
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>
net/core/dst.c

index 7deef483c79f263959c0c1dac148529ecc80d73c..3a01a819ba478112168e4a3c2db3b3ac023b8e67 100644 (file)
@@ -295,9 +295,6 @@ static int dst_dev_event(struct notifier_block *this, unsigned long event, void
        struct net_device *dev = ptr;
        struct dst_entry *dst, *last = NULL;
 
-       if (dev->nd_net != &init_net)
-               return NOTIFY_DONE;
-
        switch (event) {
        case NETDEV_UNREGISTER:
        case NETDEV_DOWN: