diff options
author | Shay Drory <shayd@nvidia.com> | 2021-08-16 08:41:08 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-10-25 13:51:21 -0700 |
commit | 554604061979d656bbbec50f101526349cd5aa5f (patch) | |
tree | 5f5c3fe17016437778393738711e698e665f87b3 /Documentation/networking | |
parent | a6cb08daa3b459e3dab1d98c67cb8c931f4d81a5 (diff) | |
download | linux-stable-554604061979d656bbbec50f101526349cd5aa5f.tar.gz linux-stable-554604061979d656bbbec50f101526349cd5aa5f.tar.bz2 linux-stable-554604061979d656bbbec50f101526349cd5aa5f.zip |
net/mlx5: Let user configure max_macs 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 'Documentation/networking')
-rw-r--r-- | Documentation/networking/devlink/mlx5.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/networking/devlink/mlx5.rst b/Documentation/networking/devlink/mlx5.rst index 5b77863f9c88..d467e770906e 100644 --- a/Documentation/networking/devlink/mlx5.rst +++ b/Documentation/networking/devlink/mlx5.rst @@ -14,8 +14,12 @@ Parameters * - Name - Mode + - Validation * - ``enable_roce`` - driverinit + * - ``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. |