]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:29:37 +0000 (09:29 +0100)
commit36844e250a2ebea90cf3bdf6024a10c1e07eb2c0
tree431c2fcd3be716de4eef1587d831ec1e74620c3f
parentbca4a53ea72c6e4a8b28e0723e7020dffc73218d
igb: Fix removal of unicast MAC filters of VFs

[ Upstream commit 584af82154f56e6b2740160fcc84a2966d969e15 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igb/igb_main.c