40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
|
From 29ebd6bb4afdf9f4aad3019c0ca9892b69dbff40 Mon Sep 17 00:00:00 2001
|
||
|
From: David Thompson <davthompson@nvidia.com>
|
||
|
Date: Thu, 12 Jan 2023 15:26:08 -0500
|
||
|
Subject: [PATCH] mlxbf_gige: add "set_link_ksettings" ethtool callback
|
||
|
X-NVConfidentiality: public
|
||
|
|
||
|
BugLink: https://bugs.launchpad.net/bugs/2012649
|
||
|
|
||
|
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>
|
||
|
(cherry picked from commit cedd97737a1f302b3d0493d7054a35e0c5997b99)
|
||
|
Signed-off-by: David Thompson <davthompson@nvidia.com>
|
||
|
Acked-by: Tim Gardner <tim.gardner@canonical.com>
|
||
|
Acked-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com>
|
||
|
Signed-off-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com>
|
||
|
---
|
||
|
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c
|
||
|
index 257724323..602537f62 100644
|
||
|
--- a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c
|
||
|
+++ b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c
|
||
|
@@ -170,4 +170,5 @@ const struct ethtool_ops mlxbf_gige_ethtool_ops = {
|
||
|
.nway_reset = phy_ethtool_nway_reset,
|
||
|
.get_pauseparam = mlxbf_gige_get_pauseparam,
|
||
|
.get_link_ksettings = phy_ethtool_get_link_ksettings,
|
||
|
+ .set_link_ksettings = phy_ethtool_set_link_ksettings,
|
||
|
};
|
||
|
--
|
||
|
2.14.1
|
||
|
|