i40e: Fix deletion of MAC filters
Subsystems (2)
PATCH 1/1 i40e: Fix deletion of MAC filters
In __i40e_del_filter function, the flag __I40E_MACVLAN_SYNC_PENDING for the PF state is wrongly set for the VSI. Deleting any of the MAC filters has caused the incorrect syncing for the PF. Fix it by setting this state flag to the intended PF.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -1
@@ -1422,7 +1422,7 @@ void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f) } vsi->flags |=I40E_VSI_FLAG_FILTER_CHANGED ; -set_bit (__I40E_MACVLAN_SYNC_PENDING, vsi->state); +set_bit (__I40E_MACVLAN_SYNC_PENDING, vsi->back->state); }/**
Signature · 1 line
2.13.6
Bowers
PATCH 1/1 i40e: Fix deletion of MAC filters
Quoted 12 lines
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Lihong Yang
Sent: Wednesday, November 21, 2018 9:16 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH] i40e: Fix deletion of MAC filtersIn
__i40e_del_filterfunction, the flag__I40E_MACVLAN_SYNC_PENDINGfor the PF state is wrongly set for the VSI. Deleting any of the MAC filters has caused the incorrect syncing for the PF. Fix it by setting this state flag to the intended PF.
Quoted 4 lines
Signed-off-by Lihong Yang <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)