提交 0c0e6341 编写于 作者: W wenxiong@linux.vnet.ibm.com 提交者: David S. Miller

bnx2x: Adapter not recovery from EEH error injection

When injecting EEH error to bnx2x adapter, adapter couldn't be recovery
and caused recursive EEH errors. The patch fixes the issue.
Signed-off-by: NWen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 31f6f291
...@@ -13283,8 +13283,8 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp) ...@@ -13283,8 +13283,8 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)
netdev_reset_tc(bp->dev); netdev_reset_tc(bp->dev);
del_timer_sync(&bp->timer); del_timer_sync(&bp->timer);
cancel_delayed_work(&bp->sp_task); cancel_delayed_work_sync(&bp->sp_task);
cancel_delayed_work(&bp->period_task); cancel_delayed_work_sync(&bp->period_task);
spin_lock_bh(&bp->stats_lock); spin_lock_bh(&bp->stats_lock);
bp->stats_state = STATS_STATE_DISABLED; bp->stats_state = STATS_STATE_DISABLED;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册