> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Simon Horman > Sent: Tuesday, August 26, 2025 6:37 PM > To: Kitszel, Przemyslaw <[email protected]> > Cc: [email protected]; Nguyen, Anthony L > <[email protected]>; [email protected]; Greg KH > <[email protected]>; Kyle, Jeremiah <[email protected]>; > Pepiak, Leszek <[email protected]>; Czapnik, Lukasz > <[email protected]>; Loktionov, Aleksandr > <[email protected]> > Subject: Re: [Intel-wired-lan] [PATCH iwl-net 8/8] i40e: improve VF MAC > filters > accounting > > 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]>
Tested-by: Rafal Romanowski <[email protected]>
