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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:04:26 +0000 (14:04 +0100)
commit354ae5ca6ce17ed270650436f8449acecb032278
tree6f5edddd98f14bf239c6e1dd1c03df4bbf18f8ab
parente04a7a84bb77f9cdf4475340fe931389bc72331c
ice: Fix replacing VF hardware MAC to existing MAC filter

[ Upstream commit ce572a5b88d5ca6737b5e23da9892792fd708ad3 ]

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: ed4c068d46f6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c