ice: fix VLAN replay after reset
Subsystems (3)
PATCH 1/1 ice: fix VLAN replay after reset
There is a bug currently when there are more than one VLAN defined and any reset that affects the PF is initiated, after the reset rebuild no traffic will pass on any VLAN but the last one created.
This is caused by the iteration though the VLANs during replay each clearing the vsi_map bitmap of the VSI that is being replayed. The problem is that during rhe replay, the pointer to the vsi_map bitmap is used by each successive vlan to determine if it should be replayed on this VSI.
The logic was that the replay of the VLAN would replace the bit in the map before the next VLAN would iterate through. But, since the replay copies the old bitmap pointer to filt_replay_rules and creates a new one for the recreated VLANS, it does not do this, and leaves the old bitmap broken to be used to replay the remaining VLANs.
Since the old bitmap will be cleaned up in post replay cleanup, there is no need to alter it and break following VLAN replay, so don't clear the bit.
--- drivers/net/ethernet/intel/ice/ice_switch.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/intel/ice/ice_switch.c +0 -2
@@ -6322,8 +6322,6 @@ ice_replay_vsi_fltr(struct ice_hw *hw, u16 vsi_handle, u8 recp_id,if (!itr->vsi_list_info || !test_bit (vsi_handle, itr->vsi_list_info->vsi_map))continue ; -/* Clearing it so that the logic can add it back */ -clear_bit (vsi_handle, itr->vsi_list_info->vsi_map); f_entry.fltr_info.vsi_handle = vsi_handle; f_entry.fltr_info.fltr_act =ICE_FWD_TO_VSI ;/* update the src in case it is VSI num */
Signature · 1 line
2.46.0
Quoted 25 lines
-----Original Message-----
From: Dave Ertman <[email protected]>
Sent: Wednesday, September 18, 2024 11:03 AM
To: [email protected]
Cc: [email protected]; Kitszel, Przemyslaw <[email protected]>
Subject: [PATCH iwl-net] ice: fix VLAN replay after resetThere is a bug currently when there are more than one VLAN defined and any reset that affects the PF is initiated, after the reset rebuild no traffic will pass on any VLAN but the last one created.
This is caused by the iteration though the VLANs during replay each clearing the
vsi_mapbitmap of the VSI that is being replayed. The problem is that during rhe replay, the pointer to thevsi_mapbitmap is used by each successive vlan to determine if it should be replayed on this VSI.The logic was that the replay of the VLAN would replace the bit in the map before the next VLAN would iterate through. But, since the replay copies the old bitmap pointer to
filt_replay_rulesand creates a new one for the recreated VLANS, it does not do this, and leaves the old bitmap broken to be used to replay the remaining VLANs.
Quoted 8 lines
Since the old bitmap will be cleaned up in post replay cleanup, there is no need to alter it and break following VLAN replay, so don't clear the bit.
Fixes 334cb0626de1 ("ice: Implement VSI replay framework")Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Dave Ertman <[email protected]>---
Quoted 13 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Dave Ertman
Sent: Wednesday, September 18, 2024 11:33 PM
To: [email protected]
Cc: [email protected]; Kitszel, Przemyslaw <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net] ice: fix VLAN replay after resetThere is a bug currently when there are more than one VLAN defined and any reset that affects the PF is initiated, after the reset rebuild no traffic will pass on any VLAN but the last one created.
This is caused by the iteration though the VLANs during replay each clearing the
vsi_mapbitmap of the VSI that is being replayed. The problem is that during rhe replay, the pointer to thevsi_mapbitmap is used by each successive vlan to determine if it should be replayed on this VSI.The logic was that the replay of the VLAN would replace the bit in the map before the next VLAN would iterate through. But, since the replay copies the old bitmap pointer to
filt_replay_rulesand creates > a new one for the recreated VLANS, it does not do this, and leaves the old bitmap broken to be used to replay the remaining VLANs.
Quoted 9 lines
Since the old bitmap will be cleaned up in post replay cleanup, there is no need to alter it and break following VLAN replay, so don't clear the bit.
Fixes 334cb0626de1 ("ice: Implement VSI replay framework")Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Dave Ertman <[email protected]>--- drivers/net/ethernet/intel/ice/ice_switch.c | 2 -- 1 file changed, 2 deletions(-)