Skip to content

Commit

Permalink
ipv6: remove duplicate neigh_ifdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Dec 19, 2010
1 parent bc3ef66 commit d1ed113
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
if (how || !(dev->flags & IFF_LOOPBACK))
rt6_ifdown(net, dev);
neigh_ifdown(&nd_tbl, dev);

idev = __in6_dev_get(dev);
if (idev == NULL)
Expand Down

0 comments on commit d1ed113

Please sign in to comment.