summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_main.c
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-03-02 08:59:56 +0100
committerDavid S. Miller <davem@davemloft.net>2009-03-03 07:32:42 +0100
commit762d5f6c95e4c7036aaaf67ec0749ed64ebb71e7 (patch)
tree46da14ec5663336e5956c4a3ea98f7524ea216ec /drivers/net/bnx2x_main.c
parentbnx2x: Using DMA engine (diff)
downloadlinux-762d5f6c95e4c7036aaaf67ec0749ed64ebb71e7.tar.xz
linux-762d5f6c95e4c7036aaaf67ec0749ed64ebb71e7.zip
bnx2x: Calling tx disable unconditionally
On unload, the FW assumes that no packets will be sent after the driver sends the FW stop command. To ensure that, the driver must always call netif_tx_disable Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r--drivers/net/bnx2x_main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 3ef24b9eab3e..5397de1fc8d2 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -6573,10 +6573,8 @@ static void bnx2x_netif_stop(struct bnx2x *bp, int disable_hw)
{
bnx2x_int_disable_sync(bp, disable_hw);
bnx2x_napi_disable(bp);
- if (netif_running(bp->dev)) {
- netif_tx_disable(bp->dev);
- bp->dev->trans_start = jiffies; /* prevent tx timeout */
- }
+ netif_tx_disable(bp->dev);
+ bp->dev->trans_start = jiffies; /* prevent tx timeout */
}
/*