Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/mlx5: Rename MLX5_PF page counter type to MLX5_SELF

The MLX5_PF enum value in mlx5_func_type is used to track firmware
page allocations for the page manager function itself, which is either
the ECPF on SmartNIC systems or the host PF when there is no ECPF.

Rename it to MLX5_SELF to accurately reflect that this counter tracks
pages allocated by the manager for its own use, regardless of whether
it is a PF or ECPF.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260403090028.137783-2-tariqt@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Moshe Shemesh and committed by
Leon Romanovsky
f9e3bd43 26469110

+3 -2
+2 -1
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
··· 77 77 static u16 func_id_to_type(struct mlx5_core_dev *dev, u16 func_id, bool ec_function) 78 78 { 79 79 if (!func_id) 80 - return mlx5_core_is_ecpf(dev) && !ec_function ? MLX5_HOST_PF : MLX5_PF; 80 + return mlx5_core_is_ecpf(dev) && !ec_function ? 81 + MLX5_HOST_PF : MLX5_SELF; 81 82 82 83 if (func_id <= max(mlx5_core_max_vfs(dev), mlx5_core_max_ec_vfs(dev))) { 83 84 if (ec_function)
+1 -1
include/linux/mlx5/driver.h
··· 550 550 }; 551 551 552 552 enum mlx5_func_type { 553 - MLX5_PF, 553 + MLX5_SELF, 554 554 MLX5_VF, 555 555 MLX5_SF, 556 556 MLX5_HOST_PF,