]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix check for removing/adding mac filters
authorLihong Yang <lihong.yang@intel.com>
Fri, 8 May 2020 00:41:09 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 May 2020 05:10:04 +0000 (22:10 -0700)
commitb6c39e2e725ffefb8f91d792cc39d6e80d7adbaa
treeae4a9912b4c129a9d15e154adb15b6cad1cb2550
parent9d54b808dbff24f40ed9b34a3f4e9001c867c7b5
ice: Fix check for removing/adding mac filters

In function ice_set_mac_address, we will remove old dev_addr before
adding the new MAC. In the removing and adding process of the MAC,
there is no need to return error if the check finds the to-be-removed
dev_addr does not exist in the MAC filter list or the to-be-added mac
already exists, keep going or return success accordingly.

Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c