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

Commit 29ba5fed authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

ipv6: don't flush routes when setting loopback down



When loopback device is being brought down, then keep the route table
entries because they are special. The entries in the local table for
linklocal routes and ::1 address should not be purged.

This is a sub optimal solution to the problem and should be replaced
by a better fix in future.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Acked-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d743b7e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2669,6 +2669,8 @@ static int addrconf_ifdown(struct net_device *dev, int how)

	ASSERT_RTNL();

	/* Flush routes if device is being removed or it is not loopback */
	if (how || !(dev->flags & IFF_LOOPBACK))
		rt6_ifdown(net, dev);
	neigh_ifdown(&nd_tbl, dev);