Commit 263ba320 authored by David S. Miller's avatar David S. Miller

netdev: Convert all drivers away from netif_schedule().

They logically all want to trigger a schedule for all device
TX queues.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f0f2223
...@@ -912,7 +912,7 @@ au1000_adjust_link(struct net_device *dev) ...@@ -912,7 +912,7 @@ au1000_adjust_link(struct net_device *dev)
// link state changed // link state changed
if (phydev->link) // link went up if (phydev->link) // link went up
netif_schedule(dev); netif_tx_schedule_all(dev);
else { // link went down else { // link went down
aup->old_speed = 0; aup->old_speed = 0;
aup->old_duplex = -1; aup->old_duplex = -1;
......
...@@ -357,7 +357,7 @@ static void bfin_mac_adjust_link(struct net_device *dev) ...@@ -357,7 +357,7 @@ static void bfin_mac_adjust_link(struct net_device *dev)
if (!lp->old_link) { if (!lp->old_link) {
new_state = 1; new_state = 1;
lp->old_link = 1; lp->old_link = 1;
netif_schedule(dev); netif_tx_schedule_all(dev);
} }
} else if (lp->old_link) { } else if (lp->old_link) {
new_state = 1; new_state = 1;
......
...@@ -197,7 +197,7 @@ static void mpc52xx_fec_adjust_link(struct net_device *dev) ...@@ -197,7 +197,7 @@ static void mpc52xx_fec_adjust_link(struct net_device *dev)
if (priv->link == PHY_DOWN) { if (priv->link == PHY_DOWN) {
new_state = 1; new_state = 1;
priv->link = phydev->link; priv->link = phydev->link;
netif_schedule(dev); netif_tx_schedule_all(dev);
netif_carrier_on(dev); netif_carrier_on(dev);
netif_start_queue(dev); netif_start_queue(dev);
} }
......
...@@ -738,7 +738,7 @@ static void generic_adjust_link(struct net_device *dev) ...@@ -738,7 +738,7 @@ static void generic_adjust_link(struct net_device *dev)
if (!fep->oldlink) { if (!fep->oldlink) {
new_state = 1; new_state = 1;
fep->oldlink = 1; fep->oldlink = 1;
netif_schedule(dev); netif_tx_schedule_all(dev);
netif_carrier_on(dev); netif_carrier_on(dev);
netif_start_queue(dev); netif_start_queue(dev);
} }
......
...@@ -1234,7 +1234,7 @@ static void gfar_timeout(struct net_device *dev) ...@@ -1234,7 +1234,7 @@ static void gfar_timeout(struct net_device *dev)
startup_gfar(dev); startup_gfar(dev);
} }
netif_schedule(dev); netif_tx_schedule_all(dev);
} }
/* Interrupt Handler for Transmit complete */ /* Interrupt Handler for Transmit complete */
...@@ -1725,7 +1725,7 @@ static void adjust_link(struct net_device *dev) ...@@ -1725,7 +1725,7 @@ static void adjust_link(struct net_device *dev)
if (!priv->oldlink) { if (!priv->oldlink) {
new_state = 1; new_state = 1;
priv->oldlink = 1; priv->oldlink = 1;
netif_schedule(dev); netif_tx_schedule_all(dev);
} }
} else if (priv->oldlink) { } else if (priv->oldlink) {
new_state = 1; new_state = 1;
......
...@@ -165,7 +165,7 @@ static void macb_handle_link_change(struct net_device *dev) ...@@ -165,7 +165,7 @@ static void macb_handle_link_change(struct net_device *dev)
if (phydev->link != bp->link) { if (phydev->link != bp->link) {
if (phydev->link) if (phydev->link)
netif_schedule(dev); netif_tx_schedule_all(dev);
else { else {
bp->speed = 0; bp->speed = 0;
bp->duplex = -1; bp->duplex = -1;
......
...@@ -642,7 +642,7 @@ static void sh_eth_adjust_link(struct net_device *ndev) ...@@ -642,7 +642,7 @@ static void sh_eth_adjust_link(struct net_device *ndev)
| ECMR_DM, ioaddr + ECMR); | ECMR_DM, ioaddr + ECMR);
new_state = 1; new_state = 1;
mdp->link = phydev->link; mdp->link = phydev->link;
netif_schedule(ndev); netif_tx_schedule_all(ndev);
netif_carrier_on(ndev); netif_carrier_on(ndev);
netif_start_queue(ndev); netif_start_queue(ndev);
} }
......
...@@ -672,7 +672,7 @@ static void tc_handle_link_change(struct net_device *dev) ...@@ -672,7 +672,7 @@ static void tc_handle_link_change(struct net_device *dev)
if (dev->flags & IFF_PROMISC) if (dev->flags & IFF_PROMISC)
tc35815_set_multicast_list(dev); tc35815_set_multicast_list(dev);
#endif #endif
netif_schedule(dev); netif_tx_schedule_all(dev);
} else { } else {
lp->speed = 0; lp->speed = 0;
lp->duplex = -1; lp->duplex = -1;
......
...@@ -1588,7 +1588,7 @@ static void adjust_link(struct net_device *dev) ...@@ -1588,7 +1588,7 @@ static void adjust_link(struct net_device *dev)
if (!ugeth->oldlink) { if (!ugeth->oldlink) {
new_state = 1; new_state = 1;
ugeth->oldlink = 1; ugeth->oldlink = 1;
netif_schedule(dev); netif_tx_schedule_all(dev);
} }
} else if (ugeth->oldlink) { } else if (ugeth->oldlink) {
new_state = 1; new_state = 1;
...@@ -3372,7 +3372,7 @@ static void ucc_geth_timeout(struct net_device *dev) ...@@ -3372,7 +3372,7 @@ static void ucc_geth_timeout(struct net_device *dev)
ucc_geth_startup(ugeth); ucc_geth_startup(ugeth);
} }
netif_schedule(dev); netif_tx_schedule_all(dev);
} }
/* This is called by the kernel when a frame is ready for transmission. */ /* This is called by the kernel when a frame is ready for transmission. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment