Automatic merge of /spare/repo/netdev-2.6 branch iff-running
This commit is contained in:
@@ -2819,7 +2819,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;
|
||||
}
|
||||
@@ -2829,7 +2829,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 */
|
||||
|
Reference in New Issue
Block a user