Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195168
b: refs/heads/master
c: c89af1a
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and David S. Miller committed May 18, 2010
1 parent f8f95c0 commit 4c7d072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0ba676008d9f050f1de9ede8d1ee4bf6820bfc9
refs/heads/master: c89af1a30870e04986e2c8d24c0c765de0935f4b
6 changes: 2 additions & 4 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8499,6 +8499,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)

/* Disable HW interrupts, NAPI and Tx */
bnx2x_netif_stop(bp, 1);
netif_carrier_off(bp->dev);

del_timer_sync(&bp->timer);
SHMEM_WR(bp, func_mb[BP_FUNC(bp)].drv_pulse_mb,
Expand All @@ -8524,8 +8525,6 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)

bp->state = BNX2X_STATE_CLOSED;

netif_carrier_off(bp->dev);

/* The last driver must disable a "close the gate" if there is no
* parity attention or "process kill" pending.
*/
Expand Down Expand Up @@ -13431,6 +13430,7 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)
bp->rx_mode = BNX2X_RX_MODE_NONE;

bnx2x_netif_stop(bp, 0);
netif_carrier_off(bp->dev);

del_timer_sync(&bp->timer);
bp->stats_state = STATS_STATE_DISABLED;
Expand All @@ -13457,8 +13457,6 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)

bp->state = BNX2X_STATE_CLOSED;

netif_carrier_off(bp->dev);

return 0;
}

Expand Down

0 comments on commit 4c7d072

Please sign in to comment.