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)
commitce572a5b88d5ca6737b5e23da9892792fd708ad3
tree6a9f9bdef9947ddecf6052c563d5315e32886a33
parent0299faeaf8eb982103e4388af61fd94feb9c2d9f
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: 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>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c