kernel_samsung_a53x/drivers/net/ethernet/intel/ice
Dave Ertman 6bb154f4ac ice: fix VLAN replay after reset
[ Upstream commit 0eae2c136cb624e4050092feb59f18159b4f2512 ]

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.

Fixes: 334cb0626de1 ("ice: Implement VSI replay framework")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:50 +01:00
..
ice.h
ice_adminq_cmd.h
ice_arfs.c
ice_arfs.h
ice_base.c
ice_base.h
ice_common.c
ice_common.h
ice_controlq.c
ice_controlq.h
ice_dcb.c
ice_dcb.h
ice_dcb_lib.c
ice_dcb_lib.h
ice_dcb_nl.c
ice_dcb_nl.h
ice_devids.h
ice_devlink.c
ice_devlink.h
ice_ethtool.c
ice_ethtool_fdir.c
ice_fdir.c
ice_fdir.h
ice_flex_pipe.c
ice_flex_pipe.h
ice_flex_type.h
ice_flow.c
ice_flow.h
ice_fltr.c
ice_fltr.h
ice_fw_update.c
ice_fw_update.h
ice_hw_autogen.h
ice_lan_tx_rx.h
ice_lib.c
ice_lib.h
ice_main.c
ice_nvm.c
ice_nvm.h
ice_osdep.h
ice_protocol_type.h
ice_sched.c ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node() 2024-11-23 23:21:37 +01:00
ice_sched.h
ice_sriov.c
ice_sriov.h
ice_status.h
ice_switch.c ice: fix VLAN replay after reset 2024-11-23 23:21:50 +01:00
ice_switch.h
ice_txrx.c
ice_txrx.h
ice_txrx_lib.c
ice_txrx_lib.h
ice_type.h
ice_virtchnl_pf.c
ice_virtchnl_pf.h
ice_xsk.c
ice_xsk.h
Makefile