提交 6ed995bb 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

[PATCH] sky2: don't lose multicast addresses

Don't lose multicast addresses when link goes down or ring
parameters change.
Signed-off-by: NStephen Hemminger <shemminger@osdl.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 1b537565
......@@ -1478,8 +1478,6 @@ static void sky2_link_down(struct sky2_port *sky2)
| PHY_M_AN_ASP);
}
sky2_phy_reset(hw, port);
netif_carrier_off(sky2->netdev);
netif_stop_queue(sky2->netdev);
......@@ -2833,6 +2831,8 @@ static int sky2_set_ringparam(struct net_device *dev,
err = sky2_up(dev);
if (err)
dev_close(dev);
else
sky2_set_multicast(dev);
}
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册