OSDN Git Service

mlxbf_gige: add "set_link_ksettings" ethtool callback
authorDavid Thompson <davthompson@nvidia.com>
Thu, 12 Jan 2023 20:26:08 +0000 (15:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Jan 2023 05:59:09 +0000 (21:59 -0800)
commitcedd97737a1f302b3d0493d7054a35e0c5997b99
tree93c97111bd8ac3fe6f2e618c88efc369a9ef895b
parent20d03d4d9437771a9b6d38d4a6027a70d78d9865
mlxbf_gige: add "set_link_ksettings" ethtool callback

This patch extends the "ethtool_ops" data structure to
include the "set_link_ksettings" callback. This change
enables configuration of the various interface speeds
that the BlueField-3 supports (10Mbps, 100Mbps, and 1Gbps).

Signed-off-by: David Thompson <davthompson@nvidia.com>
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c