From: Denis V. Lunev Date: Fri, 29 Feb 2008 04:49:44 +0000 (-0800) Subject: [NETNS]: DST cleanup routines should be called inside namespace. X-Git-Tag: v2.6.26-rc1~1138^2~564 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9de8f76d200342f1e9495861c2c9ce87a6bc26d0;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/core/dst.c b/net/core/dst.c index 7deef483c79..3a01a819ba4 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 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: