net/mlx5e: Introduce ptys2ethtool_process_link()
authorShahar Shitrit <shshitrit@nvidia.com>
Wed, 19 Feb 2025 11:41:10 +0000 (13:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 01:36:09 +0000 (17:36 -0800)
commit64d97f891961a0fa249f6730102cb7c1501f8532
tree474861f17f860177e64eb6527ab5c00eba05fc94
parent5246fd3fc232f50987dad73ffd9ded1f40f1e6f6
net/mlx5e: Introduce ptys2ethtool_process_link()

The functions ptys2ethtool_supported_link(), ptys2ethtool_adver_link()
share the same code, thus, in order to remove code duplication we
introduce a new function ptys2ethtool_process_link() to handle the
processing of both supported and advertised link modes.

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-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c