]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/mlx5e: Add missing link modes to ptys2ethtool_map
authorShahar Shitrit <shshitrit@nvidia.com>
Sun, 11 Aug 2024 10:56:13 +0000 (13:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:08 +0000 (19:24 +0200)
[ Upstream commit 7617d62cba4a8a3ff3ed3fda0171c43f135c142e ]

Add MLX5E_1000BASE_T and MLX5E_100BASE_TX to the legacy
modes in ptys2legacy_ethtool_table, since they were missing.

Fixes: 665bc53969d7 ("net/mlx5e: Use new ethtool get/set link ksettings API")
Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c

index 50db127e6371bb7f31f116eddbf42a863078dff6..f973314b1724f9600f0041069e55d39da90c5843 100644 (file)
@@ -136,6 +136,10 @@ void mlx5e_build_ptys2ethtool_map(void)
                                       ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT);
        MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_100GBASE_LR4, legacy,
                                       ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT);
+       MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_100BASE_TX, legacy,
+                                      ETHTOOL_LINK_MODE_100baseT_Full_BIT);
+       MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_1000BASE_T, legacy,
+                                      ETHTOOL_LINK_MODE_1000baseT_Full_BIT);
        MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_10GBASE_T, legacy,
                                       ETHTOOL_LINK_MODE_10000baseT_Full_BIT);
        MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_25GBASE_CR, legacy,