Преглед изворни кода

ipv6: remove duplicate neigh_ifdown

When device is being set to down, neigh_ifdown was being called
twice. Once from addrconf notifier and once from ndisc notifier.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
stephen hemminger пре 14 година
родитељ
комит
d1ed113f16
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      net/ipv6/addrconf.c

+ 0 - 1
net/ipv6/addrconf.c

@@ -2672,7 +2672,6 @@ static int addrconf_ifdown(struct net_device *dev, int how)
 	/* Flush routes if device is being removed or it is not loopback */
 	/* Flush routes if device is being removed or it is not loopback */
 	if (how || !(dev->flags & IFF_LOOPBACK))
 	if (how || !(dev->flags & IFF_LOOPBACK))
 		rt6_ifdown(net, dev);
 		rt6_ifdown(net, dev);
-	neigh_ifdown(&nd_tbl, dev);
 
 
 	idev = __in6_dev_get(dev);
 	idev = __in6_dev_get(dev);
 	if (idev == NULL)
 	if (idev == NULL)