提交 51851073 编写于 作者: J Jesse Brandeburg 提交者: David S. Miller

e1000: use netif_tx_disable

we can use netif_tx_disable now because LLTX has been removed.
Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: NDon Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 282b1777
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册