Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9de8f76d authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller
Browse files

[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: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be162d62
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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: