[netdrvrs] Use netif_carrier_* instead of IFF_RUNNING

This commit is contained in:
2005-05-12 19:45:25 -04:00
committed by Jeff Garzik
parent 88d7bd8cb9
commit 7d17c1d606
7 changed files with 13 additions and 32 deletions

View File

@@ -2807,7 +2807,7 @@ void TLan_PhyMonitor( struct net_device *dev )
if (priv->link) {
priv->link = 0;
printk(KERN_DEBUG "TLAN: %s has lost link\n", dev->name);
dev->flags &= ~IFF_RUNNING;
netif_carrier_off(dev);
TLan_SetTimer( dev, (2*HZ), TLAN_TIMER_LINK_BEAT );
return;
}
@@ -2817,7 +2817,7 @@ void TLan_PhyMonitor( struct net_device *dev )
if ((phy_status & MII_GS_LINK) && !priv->link) {
priv->link = 1;
printk(KERN_DEBUG "TLAN: %s has reestablished link\n", dev->name);
dev->flags |= IFF_RUNNING;
netif_carrier_on(dev);
}
/* Setup a new monitor */