kernel_samsung_a53x/drivers/net/ethernet/intel
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
..
e1000 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e1000e Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fm10k Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e i40e: fix i40e_count_filters() to count only active/new filters 2024-11-19 09:22:47 +01:00
iavf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink() 2024-11-18 23:19:34 +01:00
igb igb: Fix missing time sync events 2024-11-19 08:44:48 +01:00
igbvf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
igc igc: Fix ambiguity in the ethtool advertising 2024-11-18 10:58:29 +01:00
ixgb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ixgbe ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-11-19 09:22:44 +01:00
ixgbevf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00