summaryrefslogtreecommitdiff
path: root/drivers/net/skge.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-04-08 03:02:25 +0400
committerJeff Garzik <jeff@garzik.org>2007-04-11 19:54:42 +0400
commite5b9ddd9a0f95e133db7b43d05978f24cd6f1369 (patch)
tree275e881717f62f47cb27ed818b57a3cc78334e2b /drivers/net/skge.c
parent5ab7ffea520948115a51a9931e1bb4c818aa8e35 (diff)
downloadlinux-e5b9ddd9a0f95e133db7b43d05978f24cd6f1369.tar.xz
skge: turn carrier off when down
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>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r--drivers/net/skge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 39c6677dff5e..cc907a1a5ecc 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -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);