]> 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)
commitef9fbb5c9a992e893a13ca30ce360d48fabb8f00
tree6a9f9bdef9947ddecf6052c563d5315e32886a33
parent920ff9ba914917c37b53a278d1d171cc38a071b5
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: a419d1c30fd4 ("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