]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix pf reset after offline test
authorShannon Nelson <shannon.nelson@intel.com>
Tue, 26 Nov 2013 10:49:12 +0000 (10:49 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 16 Dec 2013 08:48:46 +0000 (00:48 -0800)
commite54786fad7d8bc38d31560ad9610aebe30b1369f
treea80a372a96775d4e282a3ac4bf5f8a6050a3b513
parent23e104042ef8d66b32cd7c6c4601080f49dcc96d
i40e: fix pf reset after offline test

When the ethtool testing starts it sets the I40E_TESTING state
bit, which blocks new netdev opens so that things don't get
confused, while the testing might be messing with register and
other things.  Unfortunately, that was keeping the PF resets
after the register test from working correctly because the netdev
would not get reopened.  This patch reorders the tests to put the
register test last as it is the only one that needs a reset, and
we wait to trigger the reset until after we clear the
I40E_TESTING bit.

Change-Id: Ieaa18d74264250ac336b0656b490125ee8a22d2a
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c