]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add a copy of 'struct mlxsw_config_profile' for Spectrum-4
authorAmit Cohen <amcohen@nvidia.com>
Fri, 26 Aug 2022 16:06:52 +0000 (18:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 06:20:43 +0000 (23:20 -0700)
commitb683cc1cd3c9f57d0c3a1d7b0a70bf0e5eb814d0
tree15b06f1052ea38ad45f4e60907e3963ce3edabed
parent102bcc73ce4dab4cf548188e6a4a877bbd01c87b
mlxsw: spectrum: Add a copy of 'struct mlxsw_config_profile' for Spectrum-4

Starting from Spectrum-4, the maximum number of LAG IDs can be configured
by software via CONFIG_PROFILE command during driver initialization.

Add a dedicated instance of 'struct mlxsw_config_profile' for Spectrum-4
and set the 'max_lag' field to 128, which is the same amount of LAG entries
as in Spectrum-{2,3}. Without this configuration, firmware reserves 256
(the value of 'cap_max_lag' resource) entries at beginning of PGT table for
LAG identifiers, which means that less entries in PGT will be available.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c