skge: turn carrier off when down
authorStephen Hemminger <shemminger@linux-foundation.org>
Sat, 7 Apr 2007 23:02:25 +0000 (16:02 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Apr 2007 15:54:42 +0000 (11:54 -0400)
Driver needs to turn off carrier when down, otherwise it can
confuse bonding and bridging and looks like carrier is on immediately
when it is brought back up.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/skge.c

index 39c6677dff5eabeebf9b9dbd391965e9c15dd4b3..cc907a1a5ecc1694ce0c5b5bd553b07342cd16de 100644 (file)
@@ -2535,6 +2535,7 @@ static int skge_down(struct net_device *dev)
                printk(KERN_INFO PFX "%s: disabling interface\n", dev->name);
 
        netif_stop_queue(dev);
+       netif_carrier_off(dev);
        if (hw->chip_id == CHIP_ID_GENESIS && hw->phy_type == SK_PHY_XMAC)
                del_timer_sync(&skge->link_timer);