Commit 6322e63c authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

i40e: properly spell I40E_VF_STATE_* flags

These flags represent the state of the VF at various times. Do not
spell them as _STAT_ which can be confusing to readers who may think
these refer to statistics.

Change-ID: I6bc092cd472e8276896a1fd7498aced2084312df
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent c08bac03
...@@ -1826,7 +1826,7 @@ static inline bool i40e_active_vfs(struct i40e_pf *pf) ...@@ -1826,7 +1826,7 @@ static inline bool i40e_active_vfs(struct i40e_pf *pf)
int i; int i;
for (i = 0; i < pf->num_alloc_vfs; i++) for (i = 0; i < pf->num_alloc_vfs; i++)
if (test_bit(I40E_VF_STAT_ACTIVE, &vfs[i].vf_states)) if (test_bit(I40E_VF_STATE_ACTIVE, &vfs[i].vf_states))
return true; return true;
return false; return false;
} }
......
...@@ -7318,7 +7318,7 @@ static void i40e_handle_mdd_event(struct i40e_pf *pf) ...@@ -7318,7 +7318,7 @@ static void i40e_handle_mdd_event(struct i40e_pf *pf)
"Too many MDD events on VF %d, disabled\n", i); "Too many MDD events on VF %d, disabled\n", i);
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"Use PF Control I/F to re-enable the VF\n"); "Use PF Control I/F to re-enable the VF\n");
set_bit(I40E_VF_STAT_DISABLED, &vf->vf_states); set_bit(I40E_VF_STATE_DISABLED, &vf->vf_states);
} }
} }
......
...@@ -56,13 +56,13 @@ enum i40e_queue_ctrl { ...@@ -56,13 +56,13 @@ enum i40e_queue_ctrl {
/* VF states */ /* VF states */
enum i40e_vf_states { enum i40e_vf_states {
I40E_VF_STAT_INIT = 0, I40E_VF_STATE_INIT = 0,
I40E_VF_STAT_ACTIVE, I40E_VF_STATE_ACTIVE,
I40E_VF_STAT_IWARPENA, I40E_VF_STATE_IWARPENA,
I40E_VF_STAT_FCOEENA, I40E_VF_STATE_FCOEENA,
I40E_VF_STAT_DISABLED, I40E_VF_STATE_DISABLED,
I40E_VF_STAT_MC_PROMISC, I40E_VF_STATE_MC_PROMISC,
I40E_VF_STAT_UC_PROMISC, I40E_VF_STATE_UC_PROMISC,
}; };
/* VF capabilities */ /* VF capabilities */
......
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