igb: Fix removal of unicast MAC filters of VFs
authorKaren Sornek <karen.sornek@intel.com>
Tue, 31 Aug 2021 11:16:35 +0000 (13:16 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 15 Dec 2021 19:08:18 +0000 (11:08 -0800)
commit584af82154f56e6b2740160fcc84a2966d969e15
treee19f769115b8c4ddb43d112a9137442886d71c26
parent1d1c950faa81e1c287c9e14f307f845b190eb578
igb: Fix removal of unicast MAC filters of VFs

Move checking condition of VF MAC filter before clearing
or adding MAC filter to VF to prevent potential blackout caused
by removal of necessary and working VF's MAC filter.

Fixes: 1b8b062a99dc ("igb: add VF trust infrastructure")
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c