]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix VF's MAC Address change on VM
authorNorbert Zulinski <norbertx.zulinski@intel.com>
Wed, 8 Jun 2022 09:10:56 +0000 (11:10 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 30 Jun 2022 20:09:00 +0000 (13:09 -0700)
commit05ff684bbc7657353ede764010d06592828e35ae
tree61fcb6d094a815f4be641f165f3b4b6b6b9faf8f
parent6e8d2fdb23f66c2cb1cee2f484cef3bb95026d3e
i40e: Fix VF's MAC Address change on VM

Clear VF MAC from parent PF and remove VF filter from VSI when both
conditions are true:
-VIRTCHNL_VF_OFFLOAD_USO is not used
-VM MAC was not set from PF level

It affects older version of IAVF and it allow them to change MAC
Address on VM, newer IAVF won't change their behaviour.

Previously it wasn't possible to change VF's MAC Address on VM
because there is flag on IAVF driver that won't allow to
change MAC Address if this address is given from PF driver.

Fixes: f08737a1842c ("iavf: allow permanent MAC address to change")
Signed-off-by: Norbert Zulinski <norbertx.zulinski@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c