]> www.infradead.org Git - users/dwmw2/linux.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)
commit13ed5e8a9b9ccd140a79e80283f69d724c9bb2be
treede238deaed6260d44f1d4f6645c50a776c7ce3e5
parent1b0b0b581b945ee27beb70e8199270a22dd5a2f6
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: 757976ab16be ("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