bnxt_en: Implement missing tx timeout reset logic.
authorMichael Chan <mchan@broadcom.com>
Thu, 10 Dec 2015 00:35:44 +0000 (19:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 04:34:06 +0000 (23:34 -0500)
commit028de140ffdf481d4948de663b33dae78e1e9cc8
tree4257c33bddf30380a8c3a8d690629a0668a4ee3e
parent4cebdcec0933bf39c0ab42e8ce8c9d72f803fbe9
bnxt_en: Implement missing tx timeout reset logic.

The reset logic calls bnxt_close_nic() and bnxt_open_nic() under rtnl_lock
from bnxt_sp_task.  BNXT_STATE_IN_SP_TASK must be cleared before calling
bnxt_close_nic() to avoid deadlock.

v2: Fixed white space error.  Thanks Dave.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c