Commit c140c17b authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: clear test state bit after all ethtool tests

Fix a bug where the TESTING state was still set when
exiting the ethtool diagnostics.

Change-Id: Ic47950d2e86a67167d1d282256d477cecd86d820
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent ac6c5e3d
...@@ -805,9 +805,10 @@ static void i40e_diag_test(struct net_device *netdev, ...@@ -805,9 +805,10 @@ static void i40e_diag_test(struct net_device *netdev,
data[I40E_ETH_TEST_EEPROM] = 0; data[I40E_ETH_TEST_EEPROM] = 0;
data[I40E_ETH_TEST_INTR] = 0; data[I40E_ETH_TEST_INTR] = 0;
data[I40E_ETH_TEST_LOOPBACK] = 0; data[I40E_ETH_TEST_LOOPBACK] = 0;
clear_bit(__I40E_TESTING, &pf->state);
} }
clear_bit(__I40E_TESTING, &pf->state);
netdev_info(netdev, "testing finished\n");
} }
static void i40e_get_wol(struct net_device *netdev, static void i40e_get_wol(struct net_device *netdev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment