Vladislav Zolotarov 87b7ba3d24 bnx2x: Prevent restarting Tx during bnx2x_nic_unload
Tx queues were stopped before  bp->state was changed to a value different 
from BNX2X_STATE_OPEN, which allowed the bnx2x_tx_int() called from the 
NAPI context to re-enable it. This then allowed the netdev->ndo_start_xmit() 
to be called in the middle of the function reset and rings freeing. 

This patch changes bp->state to a value different 
from BNX2X_STATE_OPEN BEFORE disabling the Tx queues in order to restore the
broken protection against the above race in the bnx2x_tx_int().

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-08-02 01:35:43 -07:00
..
2011-07-21 13:47:54 -07:00
2011-07-21 13:47:54 -07:00
2011-07-26 16:49:47 -07:00
2011-07-23 20:01:15 -07:00
2011-07-27 22:39:30 -07:00
2011-07-07 00:26:31 -07:00
2011-07-21 13:47:54 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-21 13:47:54 -07:00
2011-07-21 13:47:53 -07:00
2011-07-21 13:47:55 -07:00
2011-07-26 16:49:47 -07:00
2011-07-23 20:01:15 -07:00
2011-07-21 13:47:55 -07:00
2011-07-21 22:57:38 -07:00
2011-07-21 13:47:56 -07:00
2011-06-29 06:02:05 -07:00
2011-07-26 16:49:47 -07:00
2011-07-23 20:01:15 -07:00
2011-03-31 11:26:23 -03:00
2011-07-21 13:47:57 -07:00
2011-07-26 16:49:47 -07:00
2011-05-31 19:28:32 -07:00
2011-03-31 11:26:23 -03:00
2011-05-31 19:28:32 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-07-15 08:08:26 -07:00
2011-07-25 16:16:00 -07:00
2011-07-25 16:16:00 -07:00
2011-07-21 13:47:54 -07:00
2011-07-21 13:47:54 -07:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2011-06-21 15:48:29 -07:00
2011-06-13 17:26:15 -04:00
2011-03-31 11:26:23 -03:00
2011-06-21 15:48:29 -07:00
2011-03-31 11:26:23 -03:00
2011-06-21 15:48:29 -07:00
2011-03-31 11:26:23 -03:00
2011-07-27 22:39:30 -07:00
2011-07-21 13:47:55 -07:00
2011-07-21 13:47:55 -07:00
2011-04-17 17:47:36 -07:00
2011-06-21 15:48:29 -07:00
2011-03-31 11:26:23 -03:00
2011-05-31 19:28:32 -07:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2011-07-21 13:47:55 -07:00
2011-06-24 17:31:37 -07:00
2011-03-31 11:26:23 -03:00
2011-06-21 15:48:29 -07:00
2011-07-07 04:41:24 -07:00
2011-07-27 22:39:31 -07:00
2011-03-31 11:26:23 -03:00
2011-05-31 19:28:32 -07:00
2011-08-01 02:27:21 -07:00
2011-04-06 14:35:23 -07:00
2011-07-21 13:47:56 -07:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2011-06-21 15:48:29 -07:00
2011-03-31 11:26:23 -03:00
2011-07-21 13:47:55 -07:00
2011-06-21 15:48:29 -07:00
2011-07-07 00:30:09 -07:00
2011-07-08 08:53:33 -07:00
2011-03-31 11:26:23 -03:00
2011-07-21 13:47:56 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-07-21 13:47:55 -07:00
2011-07-21 13:47:55 -07:00
2011-03-31 11:26:23 -03:00
2011-06-21 15:48:29 -07:00
2011-03-31 11:26:23 -03:00
2011-07-21 13:47:56 -07:00