linux/drivers/net/ethernet/intel/i40e
Lukasz Czapnik b99dd77076 i40e: improve VF MAC filters accounting
When adding new VM MAC, driver checks only *active* filters in
vsi->mac_filter_hash. Each MAC, even in non-active state is using resources.

To determine number of MACs VM uses, count VSI filters in *any* state.

Add i40e_count_all_filters() to simply count all filters, and rename
i40e_count_filters() to i40e_count_active_filters() to avoid ambiguity.

Fixes: cfb1d572c9 ("i40e: Add ensurance of MacVlan resources for every trusted VF")
Cc: stable@vger.kernel.org
Signed-off-by: Lukasz Czapnik <lukasz.czapnik@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-09-18 15:46:30 -07:00
..
Makefile
i40e.h i40e: improve VF MAC filters accounting 2025-09-18 15:46:30 -07:00
i40e_adminq.c i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_adminq.h i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_adminq_cmd.h i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_alloc.h
i40e_client.c i40e: Fix potential invalid access when MAC list is empty 2025-09-02 11:08:52 -07:00
i40e_common.c i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_dcb.c i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_dcb.h i40e: Remove unused i40e_dcb_hw_get_num_tc 2025-01-06 13:31:49 -08:00
i40e_dcb_nl.c i40e: use libie_aq_str 2025-07-24 09:45:43 -07:00
i40e_ddp.c
i40e_debug.h
i40e_debugfs.c i40e: remove read access to debugfs files 2025-09-02 11:05:51 -07:00
i40e_devids.h
i40e_devlink.c
i40e_devlink.h
i40e_diag.c
i40e_diag.h
i40e_ethtool.c i40e: use libie_aq_str 2025-07-24 09:45:43 -07:00
i40e_hmc.c
i40e_hmc.h
i40e_io.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_main.c i40e: improve VF MAC filters accounting 2025-09-18 15:46:30 -07:00
i40e_nvm.c i40e: use libie_aq_str 2025-07-24 09:45:43 -07:00
i40e_prototype.h i40e: fix Jumbo Frame support after iPXE boot 2025-09-09 10:29:53 -07:00
i40e_ptp.c net: Fix typos 2025-07-25 10:29:07 -07:00
i40e_register.h
i40e_trace.h
i40e_txrx.c i40e: remove redundant memory barrier when cleaning Tx descs 2025-09-16 14:01:53 -07:00
i40e_txrx.h net: intel: move RSS packet classifier types to libie 2025-06-09 09:56:18 -07:00
i40e_txrx_common.h
i40e_type.h i40e: use libie adminq descriptors 2025-07-24 09:26:13 -07:00
i40e_virtchnl_pf.c i40e: improve VF MAC filters accounting 2025-09-18 15:46:30 -07:00
i40e_virtchnl_pf.h i40e: fix validation of VF state in get resources 2025-09-18 15:46:29 -07:00
i40e_xsk.c i40e: use generic unrolled_count() macro 2025-02-10 17:54:43 -08:00
i40e_xsk.h i40e: use generic unrolled_count() macro 2025-02-10 17:54:43 -08:00