Commit eeeddbb8 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

i40e: drop i40e_pf *pf from i40e_vc_disable_vf()

It's never used, and the vf structure could get back to the PF if
necessary. Lets just drop the extra unneeded parameter.
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 ba4e003d
...@@ -154,12 +154,11 @@ void i40e_vc_notify_vf_reset(struct i40e_vf *vf) ...@@ -154,12 +154,11 @@ void i40e_vc_notify_vf_reset(struct i40e_vf *vf)
/** /**
* i40e_vc_disable_vf * i40e_vc_disable_vf
* @pf: pointer to the PF info
* @vf: pointer to the VF info * @vf: pointer to the VF info
* *
* Disable the VF through a SW reset * Disable the VF through a SW reset
**/ **/
static inline void i40e_vc_disable_vf(struct i40e_pf *pf, struct i40e_vf *vf) static inline void i40e_vc_disable_vf(struct i40e_vf *vf)
{ {
i40e_vc_notify_vf_reset(vf); i40e_vc_notify_vf_reset(vf);
i40e_reset_vf(vf, false); i40e_reset_vf(vf, false);
...@@ -2918,7 +2917,7 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac) ...@@ -2918,7 +2917,7 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac)
} }
/* Force the VF driver stop so it has to reload with new MAC address */ /* Force the VF driver stop so it has to reload with new MAC address */
i40e_vc_disable_vf(pf, vf); i40e_vc_disable_vf(vf);
dev_info(&pf->pdev->dev, "Reload the VF driver to make this change effective.\n"); dev_info(&pf->pdev->dev, "Reload the VF driver to make this change effective.\n");
error_param: error_param:
...@@ -3013,7 +3012,7 @@ int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, ...@@ -3013,7 +3012,7 @@ int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id,
* the right thing by reconfiguring his network correctly * the right thing by reconfiguring his network correctly
* and then reloading the VF driver. * and then reloading the VF driver.
*/ */
i40e_vc_disable_vf(pf, vf); i40e_vc_disable_vf(vf);
/* During reset the VF got a new VSI, so refresh the pointer. */ /* During reset the VF got a new VSI, so refresh the pointer. */
vsi = pf->vsi[vf->lan_vsi_idx]; vsi = pf->vsi[vf->lan_vsi_idx];
} }
......
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