netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset
@ 2016-07-18 13:44 zyjzyj2000
  2016-07-18 22:30 ` [E1000-devel] " Skidmore, Donald C
  0 siblings, 1 reply; 6+ messages in thread
From: zyjzyj2000 @ 2016-07-18 13:44 UTC (permalink / raw)
  To: e1000-devel, netdev, jeffrey.t.kirsher; +Cc: Zhu Yanjun

From: Zhu Yanjun <zyjzyj2000@gmail.com>

When performing hardware reset, it is not necessary to check hang.
Or else, the call trace will appear.

Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com>
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index acc2401..d563d24 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -2792,9 +2792,14 @@ static void ixgbevf_reset_subtask(struct ixgbevf_adapter *adapter)
 static void ixgbevf_check_hang_subtask(struct ixgbevf_adapter *adapter)
 {
 	struct ixgbe_hw *hw = &adapter->hw;
+	struct ixgbe_mbx_info *mbx = &hw->mbx;
 	u32 eics = 0;
 	int i;
 
+	/* When performing hardware reset, unnecessary to check hang. */
+	if (mbx->ops.check_for_rst(hw))
+		return;
+
 	/* If we're down or resetting, just bail */
 	if (test_bit(__IXGBEVF_DOWN, &adapter->state) ||
 	    test_bit(__IXGBEVF_RESETTING, &adapter->state))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [V2 PATCH 1/1] ixgbevf: avoid checking hang when performing hardware
@ 2016-07-19 23:23 zyjzyj2000
  2016-07-19 23:23 ` [PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset zyjzyj2000
  0 siblings, 1 reply; 6+ messages in thread
From: zyjzyj2000 @ 2016-07-19 23:23 UTC (permalink / raw)
  To: e1000-devel, netdev, jeffrey.t.kirsher, donald.c.skidmore,
	intel-wired-lan


v1->v2:
Follow the advice from Donald, replacing read directly from RSTD and RSTI register with a state variable __IXGBEVF_HW_RESETTING;

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-20  2:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-18 13:44 [PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset zyjzyj2000
2016-07-18 22:30 ` [E1000-devel] " Skidmore, Donald C
2016-07-19 13:31   ` (unknown), zyjzyj2000
2016-07-19 13:31     ` [PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset zyjzyj2000
2016-07-20  2:42   ` zhuyj
  -- strict thread matches above, loose matches on Subject: below --
2016-07-19 23:23 [V2 PATCH 1/1] ixgbevf: avoid checking hang when performing hardware zyjzyj2000
2016-07-19 23:23 ` [PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset zyjzyj2000

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).