kernel_samsung_a53x/drivers/net/ethernet/intel/i40e
Aleksandr Loktionov c6757c10a5 i40e: fix i40e_count_filters() to count only active/new filters
commit eb58c598ce45b7e787568fe27016260417c3d807 upstream.

The bug usually affects untrusted VFs, because they are limited to 18 MACs,
it affects them badly, not letting to create MAC all filters.
Not stable to reproduce, it happens when VF user creates MAC filters
when other MACVLAN operations are happened in parallel.
But consequence is that VF can't receive desired traffic.

Fix counter to be bumped only for new or active filters.

Fixes: 621650cabee5 ("i40e: Refactoring VF MAC filters counting to make more reliable")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:22:47 +01:00
..
i40e.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_alloc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_client.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_common.c i40e: prevent crash on probe if hw registers have invalid values 2024-11-08 11:26:10 +01:00
i40e_dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_dcb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_dcb_nl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ddp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_devids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_diag.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_hmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_hmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_lan_hmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_lan_hmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_main.c i40e: fix i40e_count_filters() to count only active/new filters 2024-11-19 09:22:47 +01:00
i40e_nvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_osdep.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_prototype.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_register.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_status.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_txrx.c net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
i40e_txrx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_txrx_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_virtchnl_pf.c i40e: Fix VF disable behavior to block all traffic 2024-11-18 12:13:17 +01:00
i40e_virtchnl_pf.h i40e: Fix VF disable behavior to block all traffic 2024-11-18 12:13:17 +01:00
i40e_xsk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_xsk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00