]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix replacing VF hardware MAC to existing MAC filter
authorSylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Thu, 6 May 2021 15:40:03 +0000 (08:40 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 3 Nov 2021 15:16:08 +0000 (08:16 -0700)
commit236b75b6659f6af00fa95e5b2bc557eb0f842b2b
tree6a9f9bdef9947ddecf6052c563d5315e32886a33
parenta3da207ef1db405a471132b4680441613300f18a
ice: Fix replacing VF hardware MAC to existing MAC filter

VF was not able to change its hardware MAC address in case
the new address was already present in the MAC filter list.
Change the handling of VF add mac request to not return
if requested MAC address is already present on the list
and check if its hardware MAC needs to be updated in this case.

Fixes: 5fe79159f348 ("ice: Enable ip link show on the PF to display VF unicast MAC(s)")
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c