]> git.baikalelectronics.ru Git - kernel.git/commit
ice: update dev_addr in ice_set_mac_address even if HW filter exists
authorNick Nunley <nicholas.d.nunley@intel.com>
Sat, 21 Nov 2020 00:38:33 +0000 (16:38 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 26 Jan 2021 18:43:49 +0000 (10:43 -0800)
commita8f873763e13027d2f59f165620e6ad6f6065477
treede238deaed6260d44f1d4f6645c50a776c7ce3e5
parent9f1f4d91d901a196900fe767d393c829c8ec8383
ice: update dev_addr in ice_set_mac_address even if HW filter exists

Fix the driver to copy the MAC address configured in ndo_set_mac_address
into dev_addr, even if the MAC filter already exists in HW. In some
situations (e.g. bonding) the netdev's dev_addr could have been modified
outside of the driver, with no change to the HW filter, so the driver
cannot assume that they match.

Fixes: 09c4506d3f3a ("ice: Fix check for removing/adding mac filters")
Signed-off-by: Nick Nunley <nicholas.d.nunley@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c