netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] nfp: ethtool: supplement nfp link modes supported
@ 2023-02-10  9:53 Simon Horman
  2023-02-12 18:30 ` Leon Romanovsky
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Horman @ 2023-02-10  9:53 UTC (permalink / raw)
  To: David Miller, Jakub Kicinski, Paolo Abeni
  Cc: netdev, oss-drivers, Yu Xiao, Simon Horman

From: Yu Xiao <yu.xiao@corigine.com>

Add support for the following modes to the nfp driver:

	NFP_MEDIA_10GBASE_LR
	NFP_MEDIA_25GBASE_LR
	NFP_MEDIA_25GBASE_ER

These modes are supported by the hardware and,
support for them was recently added to firmware.

Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
---
 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 12 ++++++++++++
 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
index 918319f965b3..dfedb52b7e70 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
@@ -313,6 +313,10 @@ static const struct nfp_eth_media_link_mode {
 		.ethtool_link_mode	= ETHTOOL_LINK_MODE_10000baseKR_Full_BIT,
 		.speed			= NFP_SPEED_10G,
 	},
+	[NFP_MEDIA_10GBASE_LR] = {
+		.ethtool_link_mode	= ETHTOOL_LINK_MODE_10000baseLR_Full_BIT,
+		.speed			= NFP_SPEED_10G,
+	},
 	[NFP_MEDIA_10GBASE_CX4] = {
 		.ethtool_link_mode	= ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT,
 		.speed			= NFP_SPEED_10G,
@@ -349,6 +353,14 @@ static const struct nfp_eth_media_link_mode {
 		.ethtool_link_mode	= ETHTOOL_LINK_MODE_25000baseSR_Full_BIT,
 		.speed			= NFP_SPEED_25G,
 	},
+	[NFP_MEDIA_25GBASE_LR] = {
+		.ethtool_link_mode	= ETHTOOL_LINK_MODE_25000baseSR_Full_BIT,
+		.speed			= NFP_SPEED_25G,
+	},
+	[NFP_MEDIA_25GBASE_ER] = {
+		.ethtool_link_mode	= ETHTOOL_LINK_MODE_25000baseSR_Full_BIT,
+		.speed			= NFP_SPEED_25G,
+	},
 	[NFP_MEDIA_40GBASE_CR4] = {
 		.ethtool_link_mode	= ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT,
 		.speed			= NFP_SPEED_40G,
diff --git a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h
index 8f5cab0032d0..781edc451bd4 100644
--- a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h
+++ b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h
@@ -140,6 +140,9 @@ enum nfp_ethtool_link_mode_list {
 	NFP_MEDIA_100GBASE_CR4,
 	NFP_MEDIA_100GBASE_KP4,
 	NFP_MEDIA_100GBASE_CR10,
+	NFP_MEDIA_10GBASE_LR,
+	NFP_MEDIA_25GBASE_LR,
+	NFP_MEDIA_25GBASE_ER,
 	NFP_MEDIA_LINK_MODES_NUMBER
 };
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] nfp: ethtool: supplement nfp link modes supported
  2023-02-10  9:53 [PATCH net-next] nfp: ethtool: supplement nfp link modes supported Simon Horman
@ 2023-02-12 18:30 ` Leon Romanovsky
  2023-02-13  1:23   ` Yinjun Zhang
  2023-02-13  7:21 ` Leon Romanovsky
  2023-02-13  9:50 ` patchwork-bot+netdevbpf
  2 siblings, 1 reply; 5+ messages in thread
From: Leon Romanovsky @ 2023-02-12 18:30 UTC (permalink / raw)
  To: Simon Horman
  Cc: David Miller, Jakub Kicinski, Paolo Abeni, netdev, oss-drivers,
	Yu Xiao

On Fri, Feb 10, 2023 at 10:53:19AM +0100, Simon Horman wrote:
> From: Yu Xiao <yu.xiao@corigine.com>
> 
> Add support for the following modes to the nfp driver:
> 
> 	NFP_MEDIA_10GBASE_LR
> 	NFP_MEDIA_25GBASE_LR
> 	NFP_MEDIA_25GBASE_ER
> 
> These modes are supported by the hardware and,
> support for them was recently added to firmware.

Is it backward compatible? Will it work if I run old FW?

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH net-next] nfp: ethtool: supplement nfp link modes supported
  2023-02-12 18:30 ` Leon Romanovsky
@ 2023-02-13  1:23   ` Yinjun Zhang
  0 siblings, 0 replies; 5+ messages in thread
From: Yinjun Zhang @ 2023-02-13  1:23 UTC (permalink / raw)
  To: Leon Romanovsky, Simon Horman
  Cc: David Miller, Jakub Kicinski, Paolo Abeni, netdev@vger.kernel.org,
	oss-drivers, Macris Xiao

On Sun, 12 Feb 2023 20:30:09 +0200, Leon Romanovsky wrote:
> On Fri, Feb 10, 2023 at 10:53:19AM +0100, Simon Horman wrote:
> > From: Yu Xiao <yu.xiao@corigine.com>
> >
> > Add support for the following modes to the nfp driver:
> >
> > 	NFP_MEDIA_10GBASE_LR
> > 	NFP_MEDIA_25GBASE_LR
> > 	NFP_MEDIA_25GBASE_ER
> >
> > These modes are supported by the hardware and,
> > support for them was recently added to firmware.
> 
> Is it backward compatible? Will it work if I run old FW?

Yes. The new ones are appended, not inserted.

> 
> Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] nfp: ethtool: supplement nfp link modes supported
  2023-02-10  9:53 [PATCH net-next] nfp: ethtool: supplement nfp link modes supported Simon Horman
  2023-02-12 18:30 ` Leon Romanovsky
@ 2023-02-13  7:21 ` Leon Romanovsky
  2023-02-13  9:50 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 5+ messages in thread
From: Leon Romanovsky @ 2023-02-13  7:21 UTC (permalink / raw)
  To: Simon Horman
  Cc: David Miller, Jakub Kicinski, Paolo Abeni, netdev, oss-drivers,
	Yu Xiao

On Fri, Feb 10, 2023 at 10:53:19AM +0100, Simon Horman wrote:
> From: Yu Xiao <yu.xiao@corigine.com>
> 
> Add support for the following modes to the nfp driver:
> 
> 	NFP_MEDIA_10GBASE_LR
> 	NFP_MEDIA_25GBASE_LR
> 	NFP_MEDIA_25GBASE_ER
> 
> These modes are supported by the hardware and,
> support for them was recently added to firmware.
> 
> Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
> Signed-off-by: Simon Horman <simon.horman@corigine.com>
> ---
>  drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 12 ++++++++++++
>  drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h |  3 +++
>  2 files changed, 15 insertions(+)
> 

Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] nfp: ethtool: supplement nfp link modes supported
  2023-02-10  9:53 [PATCH net-next] nfp: ethtool: supplement nfp link modes supported Simon Horman
  2023-02-12 18:30 ` Leon Romanovsky
  2023-02-13  7:21 ` Leon Romanovsky
@ 2023-02-13  9:50 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-02-13  9:50 UTC (permalink / raw)
  To: Simon Horman; +Cc: davem, kuba, pabeni, netdev, oss-drivers, yu.xiao

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 10 Feb 2023 10:53:19 +0100 you wrote:
> From: Yu Xiao <yu.xiao@corigine.com>
> 
> Add support for the following modes to the nfp driver:
> 
> 	NFP_MEDIA_10GBASE_LR
> 	NFP_MEDIA_25GBASE_LR
> 	NFP_MEDIA_25GBASE_ER
> 
> [...]

Here is the summary with links:
  - [net-next] nfp: ethtool: supplement nfp link modes supported
    https://git.kernel.org/netdev/net-next/c/170677fee45b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-13  9:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10  9:53 [PATCH net-next] nfp: ethtool: supplement nfp link modes supported Simon Horman
2023-02-12 18:30 ` Leon Romanovsky
2023-02-13  1:23   ` Yinjun Zhang
2023-02-13  7:21 ` Leon Romanovsky
2023-02-13  9:50 ` patchwork-bot+netdevbpf

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).