diff options
| -rw-r--r-- | drivers/net/bnx2.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index c3e2b279fca0..f38764ec02c3 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
| @@ -654,9 +654,17 @@ bnx2_netif_stop(struct bnx2 *bp) | |||
| 654 | { | 654 | { |
| 655 | bnx2_cnic_stop(bp); | 655 | bnx2_cnic_stop(bp); |
| 656 | if (netif_running(bp->dev)) { | 656 | if (netif_running(bp->dev)) { |
| 657 | int i; | ||
| 658 | |||
| 657 | bnx2_napi_disable(bp); | 659 | bnx2_napi_disable(bp); |
| 658 | netif_tx_disable(bp->dev); | 660 | netif_tx_disable(bp->dev); |
| 659 | bp->dev->trans_start = jiffies; /* prevent tx timeout */ | 661 | /* prevent tx timeout */ |
| 662 | for (i = 0; i < bp->dev->num_tx_queues; i++) { | ||
| 663 | struct netdev_queue *txq; | ||
| 664 | |||
| 665 | txq = netdev_get_tx_queue(bp->dev, i); | ||
| 666 | txq->trans_start = jiffies; | ||
| 667 | } | ||
| 660 | } | 668 | } |
| 661 | } | 669 | } |
| 662 | 670 | ||
