On Wed, Aug 13, 2025 at 12:45:18PM +0200, Przemek Kitszel wrote:
> From: Lukasz Czapnik <[email protected]>
> 
> 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: cfb1d572c986 ("i40e: Add ensurance of MacVlan resources for every 
> trusted VF")
> Cc: [email protected]
> Signed-off-by: Lukasz Czapnik <[email protected]>
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Signed-off-by: Przemek Kitszel <[email protected]>

Reviewed-by: Simon Horman <[email protected]>

Reply via email to