aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking/devlink/mlx5.rst
diff options
context:
space:
mode:
authorShay Drory <shayd@nvidia.com>2021-12-09 12:09:29 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2021-12-21 19:08:55 -0800
commit8680a60fc1fc19b5bcf50f6cfd9b5d08fc799926 (patch)
tree294871d1c48c7b4469b5ed069f7bb0c2627975d4 /Documentation/networking/devlink/mlx5.rst
parentdevlink: Clarifies max_macs generic devlink param (diff)
downloadlinux-dev-8680a60fc1fc19b5bcf50f6cfd9b5d08fc799926.tar.xz
linux-dev-8680a60fc1fc19b5bcf50f6cfd9b5d08fc799926.zip
net/mlx5: Let user configure max_macs generic param
Currently, max_macs is taking 70Kbytes of memory per function. This size is not needed in all use cases, and is critical with large scale. Hence, allow user to configure the number of max_macs. For example, to reduce the number of max_macs to 1, execute:: $ devlink dev param set pci/0000:00:0b.0 name max_macs value 1 \ cmode driverinit $ devlink dev reload pci/0000:00:0b.0 Signed-off-by: Shay Drory <shayd@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Reviewed-by: Parav Pandit <parav@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to '')
-rw-r--r--Documentation/networking/devlink/mlx5.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/networking/devlink/mlx5.rst b/Documentation/networking/devlink/mlx5.rst
index 38089f0aefcf..38e94ed65936 100644
--- a/Documentation/networking/devlink/mlx5.rst
+++ b/Documentation/networking/devlink/mlx5.rst
@@ -23,6 +23,9 @@ Parameters
* - ``event_eq_size``
- driverinit
- The range is between 64 and 4096.
+ * - ``max_macs``
+ - driverinit
+ - The range is between 1 and 2^31. Only power of 2 values are supported.
The ``mlx5`` driver also implements the following driver-specific
parameters.