diff options
| -rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 4070a22f16c8..55b19f5e436a 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | |||
| @@ -160,13 +160,8 @@ void i40e_vc_notify_vf_reset(struct i40e_vf *vf) | |||
| 160 | **/ | 160 | **/ |
| 161 | static inline void i40e_vc_disable_vf(struct i40e_pf *pf, struct i40e_vf *vf) | 161 | static inline void i40e_vc_disable_vf(struct i40e_pf *pf, struct i40e_vf *vf) |
| 162 | { | 162 | { |
| 163 | struct i40e_hw *hw = &pf->hw; | 163 | i40e_vc_notify_vf_reset(vf); |
| 164 | u32 reg; | 164 | i40e_reset_vf(vf, false); |
| 165 | |||
| 166 | reg = rd32(hw, I40E_VPGEN_VFRTRIG(vf->vf_id)); | ||
| 167 | reg |= I40E_VPGEN_VFRTRIG_VFSWR_MASK; | ||
| 168 | wr32(hw, I40E_VPGEN_VFRTRIG(vf->vf_id), reg); | ||
| 169 | i40e_flush(hw); | ||
| 170 | } | 165 | } |
| 171 | 166 | ||
| 172 | /** | 167 | /** |
