]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix attach VF to VM issue
authorPaweł Jabłoński <pawel.jablonski@intel.com>
Thu, 8 Mar 2018 22:52:05 +0000 (14:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Mar 2018 19:22:17 +0000 (12:22 -0700)
commitc696fb653ae08795c5cf338b94480e7423435803
treef762df1af5f4a41543e19afc279460843b554b84
parentb76732bdb58559d4a37a3ea41f6e7f1a52701c18
i40e: Fix attach VF to VM issue

Fix for "Resource temporarily unavailable" problem when virsh is
trying to attach a device to VM. When the VF driver is loaded on
host and virsh is trying to attach it to the VM and set a MAC
address, it ends with a race condition between i40e_reset_vf and
i40e_ndo_set_vf_mac functions. The bug is fixed by adding polling
in i40e_ndo_set_vf_mac function For when the VF is in Reset mode.

Signed-off-by: Paweł Jabłoński <pawel.jablonski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c