netxen: fix minor tx timeout bug
Fix minor bug in netdev tx timeout handling which could always lead to firmware reset instead of pci function reset. netxen_nic_reset_context() requires __NX_RESETTING bit cleared. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
03b88a66c0
commit
a598ae177a
|
@ -1903,12 +1903,13 @@ static void netxen_tx_timeout_task(struct work_struct *work)
|
|||
|
||||
netif_wake_queue(adapter->netdev);
|
||||
|
||||
goto done;
|
||||
clear_bit(__NX_RESETTING, &adapter->state);
|
||||
|
||||
} else {
|
||||
clear_bit(__NX_RESETTING, &adapter->state);
|
||||
if (!netxen_nic_reset_context(adapter)) {
|
||||
adapter->netdev->trans_start = jiffies;
|
||||
goto done;
|
||||
return;
|
||||
}
|
||||
|
||||
/* context reset failed, fall through for fw reset */
|
||||
|
@ -1916,8 +1917,6 @@ static void netxen_tx_timeout_task(struct work_struct *work)
|
|||
|
||||
request_reset:
|
||||
adapter->need_fw_reset = 1;
|
||||
done:
|
||||
clear_bit(__NX_RESETTING, &adapter->state);
|
||||
}
|
||||
|
||||
struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev)
|
||||
|
|
Loading…
Reference in New Issue