aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2014-06-03 21:23:13 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-06-24 21:15:46 -0400
commit17413a80bcff78ceb371fb6a34d888780ad7b7fa (patch)
treead5c176bc331f77dda03f18b34566fd532bd8572
parent5433ba365f6dd9f30899188755eb4b093314732c (diff)
i40e: Stop the VF device after setting its MAC address
If the host VMM administrator has changed the VF device's MAC address then the i40e driver needs to halt the VF device so that the administrator will be forced to reload the VF driver. This will cause the VF driver to start using the newly assigned MAC address. This brings the i40e driver into conformance with operational characteristics of other Intel SR-IOV featured drivers. Change-ID: Ic7242cceb8287dd2cb72fb1f3166a032a28bf88a Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index f5b9d2062573..d2dabae5b40c 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -2077,6 +2077,8 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac)
2077 } 2077 }
2078 ether_addr_copy(vf->default_lan_addr.addr, mac); 2078 ether_addr_copy(vf->default_lan_addr.addr, mac);
2079 vf->pf_set_mac = true; 2079 vf->pf_set_mac = true;
2080 /* Force the VF driver stop so it has to reload with new MAC address */
2081 i40e_vc_disable_vf(pf, vf);
2080 dev_info(&pf->pdev->dev, "Reload the VF driver to make this change effective.\n"); 2082 dev_info(&pf->pdev->dev, "Reload the VF driver to make this change effective.\n");
2081 ret = 0; 2083 ret = 0;
2082 2084