Skip to content

Commit

Permalink
[NETNS]: DST cleanup routines should be called inside namespace.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Feb 29, 2008
1 parent be162d6 commit 9de8f76
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/core/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9de8f76

Please sign in to comment.