net/mlx5: Create a new profile for SFs
authorParav Pandit <parav@mellanox.com>
Thu, 23 Apr 2020 13:27:59 +0000 (08:27 -0500)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 12 Apr 2023 03:57:37 +0000 (20:57 -0700)
commit9df839a711aee437390b16ee39cf0b5c1620be6a
tree433ef91b08c5af60bd9f0caedd0eadbff864fd4b
parent55f3e740f7f697a2287447678c09d93238a6635a
net/mlx5: Create a new profile for SFs

Create a new profile for SFs in order to disable the command cache.
Each function command cache consumes ~500KB of memory, when using a
large number of SFs this savings is notable on memory constarined
systems.

Use a new profile to provide for future differences between SFs and PFs.

The mr_cache not used for non-PF functions, so it is excluded from the
new profile.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Bodong Wang <bodong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c
include/linux/mlx5/driver.h