]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Separate extended link modes request from link modes type selection
authorShahar Shitrit <shshitrit@nvidia.com>
Wed, 19 Feb 2025 11:41:12 +0000 (13:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 01:36:09 +0000 (17:36 -0800)
commit9c362aafda8b9920568f9e7dbd5c904b34fe38bb
treecdd83ee90655fa944144abcd58e98c2ae04cfc31
parent9ca3bf013a0ef885fcafd71f68c4abf40cf8b123
net/mlx5e: Separate extended link modes request from link modes type selection

The function ext_requested() serves two distinct purposes: it checks
if extended link modes were requested, and it selects whether to use
extended or legacy link modes.

This change separates these two purposes. Now, ext_link_mode_requested()
is used directly for checking if extended link modes are requested,
while the selection of extended modes is handled independently based on
the autonegotiation status.

By making this distinction, the logic for determining whether to select
extended or legacy link modes is clearer.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250219114112.403808-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c