aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorLukasz Czapnik <[email protected]>2025-08-13 10:45:18 +0000
committerTony Nguyen <[email protected]>2025-09-18 22:46:30 +0000
commitb99dd77076bd3fddac6f7f1cbfa081c38fde17f5 (patch)
tree0b43b965b45c60caa283e05dfb2d349c584539bc /lib/xarray.c
parenti40e: add mask to apply valid bits for itr_idx (diff)
downloadkernel-b99dd77076bd3fddac6f7f1cbfa081c38fde17f5.tar.gz
kernel-b99dd77076bd3fddac6f7f1cbfa081c38fde17f5.zip
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: 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]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions