Skip to content

Commit

Permalink
e1000: use netif_tx_disable
Browse files Browse the repository at this point in the history
we can use netif_tx_disable now because LLTX has been removed.

Signed-off-by: Jesse Brandeburg <[email protected]>
Signed-off-by: Don Skidmore <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jbrandeb authored and davem330 committed Sep 27, 2009
1 parent 282b177 commit 5185107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,7 @@ void e1000_down(struct e1000_adapter *adapter)
ew32(RCTL, rctl & ~E1000_RCTL_EN);
/* flush and sleep below */

/* can be netif_tx_disable when NETIF_F_LLTX is removed */
netif_stop_queue(netdev);
netif_tx_disable(netdev);

/* disable transmits in the hardware */
tctl = er32(TCTL);
Expand Down

0 comments on commit 5185107

Please sign in to comment.