Thread (7 messages) 7 messages, 3 authors, 2014-06-02

RE: [PATCH V2 1/2] bnx2x: Adapter not recovery from EEH error injection

From: Dmitry Kravkov <hidden>
Date: 2014-05-30 12:33:00

quoted hunk ↗ jump to hunk
-----Original Message-----
From: netdev-owner@vger.kernel.org [mailto:netdev-
owner@vger.kernel.org] On Behalf Of wenxiong@linux.vnet.ibm.com
Sent: Wednesday, May 28, 2014 6:57 PM
To: David Miller
Cc: Ariel Elior; netdev; Wen Xiong
Subject: [PATCH V2 1/2] 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: Wen Xiong <redacted>
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
===================================================================
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c        2014-05-22
18:42:48.000000000 -0500
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c        2014-05-22
18:44:36.757765539 -0500
@@ -13279,8 +13279,8 @@ static int bnx2x_eeh_nic_unload(struct b
      netdev_reset_tc(bp->dev);

      del_timer_sync(&bp->timer);
-     cancel_delayed_work(&bp->sp_task);
-     cancel_delayed_work(&bp->period_task);
+     cancel_delayed_work_sync(&bp->sp_task);
+     cancel_delayed_work_sync(&bp->period_task);

      spin_lock_bh(&bp->stats_lock);
      bp->stats_state = STATS_STATE_DISABLED;
Thanks.

Reviewed-by: Dmitry Kravkov <redacted>
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the
body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
________________________________

This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help