diff options
author | Akeem G Abodunrin <akeem.g.abodunrin@intel.com> | 2015-02-21 01:42:15 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2015-02-26 07:53:57 -0500 |
commit | b67a03357cab0ccb91d641fead6f167c697a24cb (patch) | |
tree | a721bff7ee57bbcd5ac6923779f9b13ead540ff1 | |
parent | de78fc5ac1702059ca13203010fd0a3dd20d426f (diff) |
i40e: Don't check for Tx hang when PF down
This patch adds check to bail out if device is already down when checking
for Tx hang subtask.
Change-ID: I3853fb7a6d11cb9a4c349b687cb25c15b19977a0
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index cbe281be1c9f..6bb637653d12 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c | |||
@@ -5587,7 +5587,8 @@ static void i40e_check_hang_subtask(struct i40e_pf *pf) | |||
5587 | int i, v; | 5587 | int i, v; |
5588 | 5588 | ||
5589 | /* If we're down or resetting, just bail */ | 5589 | /* If we're down or resetting, just bail */ |
5590 | if (test_bit(__I40E_CONFIG_BUSY, &pf->state)) | 5590 | if (test_bit(__I40E_DOWN, &pf->state) || |
5591 | test_bit(__I40E_CONFIG_BUSY, &pf->state)) | ||
5591 | return; | 5592 | return; |
5592 | 5593 | ||
5593 | /* for each VSI/netdev | 5594 | /* for each VSI/netdev |