Fixed __e1000_maybe_stop_tx() for e1000e.

This commit is contained in:
Florian Pose 2012-12-05 12:02:44 +01:00
parent 3ec95fa24e
commit 4d94396f1a
6 changed files with 24 additions and 0 deletions

View File

@ -4174,6 +4174,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had:

View File

@ -4175,6 +4175,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had:

View File

@ -4149,6 +4149,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had:

View File

@ -4589,6 +4589,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had:

View File

@ -4794,6 +4794,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had:

View File

@ -4944,6 +4944,10 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
if (adapter->ecdev) {
return -EBUSY;
}
netif_stop_queue(netdev);
/*
* Herbert's original patch had: