aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Parav Pandit <parav@mellanox.com> 2020-04-23 08:27:59 -0500
committerGravatar Saeed Mahameed <saeedm@nvidia.com> 2023-04-11 20:57:37 -0700
commit9df839a711aee437390b16ee39cf0b5c1620be6a (patch)
tree433ef91b08c5af60bd9f0caedd0eadbff864fd4b /include
parentnet/mlx5: Bridge, add tracepoints for multicast (diff)
downloadlinux-9df839a711aee437390b16ee39cf0b5c1620be6a.tar.gz
linux-9df839a711aee437390b16ee39cf0b5c1620be6a.tar.bz2
linux-9df839a711aee437390b16ee39cf0b5c1620be6a.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index f243bd10a5e1..135a3c8d8237 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -751,6 +751,7 @@ enum {
struct mlx5_profile {
u64 mask;
u8 log_max_qp;
+ u8 num_cmd_caches;
struct {
int size;
int limit;