netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Thompson <davthompson@nvidia.com>
To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
	<pabeni@redhat.com>
Cc: <netdev@vger.kernel.org>, <cai.huoqing@linux.dev>,
	<brgl@bgdev.pl>, <limings@nvidia.com>, <chenhao288@hisilicon.com>,
	<huangguangbin2@huawei.com>,
	David Thompson <davthompson@nvidia.com>,
	"Asmaa Mnebhi" <asmaa@nvidia.com>
Subject: [PATCH net-next v3 3/4] mlxbf_gige: add "set_link_ksettings" ethtool callback
Date: Thu, 12 Jan 2023 15:26:08 -0500	[thread overview]
Message-ID: <20230112202609.21331-4-davthompson@nvidia.com> (raw)
In-Reply-To: <20230112202609.21331-1-davthompson@nvidia.com>

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>
---
 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 41ebef25a930..253d7ad9b809 100644
--- a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_ethtool.c
@@ -135,4 +135,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.30.1


  parent reply	other threads:[~2023-01-12 20:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12 20:26 [PATCH net-next v3 0/4] mlxbf_gige: add BlueField-3 support David Thompson
2023-01-12 20:26 ` [PATCH net-next v3 1/4] mlxbf_gige: add MDIO support for BlueField-3 David Thompson
2023-01-12 20:26 ` [PATCH net-next v3 2/4] mlxbf_gige: support 10M/100M/1G speeds on BlueField-3 David Thompson
2023-01-12 22:10   ` Andrew Lunn
2023-01-12 20:26 ` David Thompson [this message]
2023-01-12 22:11   ` [PATCH net-next v3 3/4] mlxbf_gige: add "set_link_ksettings" ethtool callback Andrew Lunn
2023-01-12 20:26 ` [PATCH net-next v3 4/4] mlxbf_gige: fix white space in mlxbf_gige_eth_ioctl David Thompson
2023-01-14  6:10 ` [PATCH net-next v3 0/4] mlxbf_gige: add BlueField-3 support patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230112202609.21331-4-davthompson@nvidia.com \
    --to=davthompson@nvidia.com \
    --cc=asmaa@nvidia.com \
    --cc=brgl@bgdev.pl \
    --cc=cai.huoqing@linux.dev \
    --cc=chenhao288@hisilicon.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=huangguangbin2@huawei.com \
    --cc=kuba@kernel.org \
    --cc=limings@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).