* [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports
@ 2026-02-05 9:19 Alok Tiwari
2026-02-05 10:49 ` [EXTERNAL] " Elad Nachman
2026-02-07 4:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Alok Tiwari @ 2026-02-05 9:19 UTC (permalink / raw)
To: enachman, tchornyi, vmytnyk, vkochan, pabeni, kuba, edumazet,
davem, andrew+netdev, netdev
Cc: alok.a.tiwarilinux, alok.a.tiwari
In prestera_ethtool_set_fecparam(), the error message is opposite of
the condition checking PRESTERA_PORT_TCVR_SFP. FEC configuration is
not allowed on SFP ports, but the message says "non-SFP ports", which
does not match the condition. However, FEC may be required depending on
the transceiver, cable, or mode, and firmware already validates invalid
combinations.
Remove the SFP transceiver check and let firmware handle validation.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
v1 -> v2
remove condition of if (port->caps.transceiver ==
PRESTERA_PORT_TCVR_SFP) check instead of error message correction
---
drivers/net/ethernet/marvell/prestera/prestera_ethtool.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
index 2f52daba58e6..750c72f628e5 100644
--- a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
+++ b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
@@ -717,11 +717,6 @@ static int prestera_ethtool_set_fecparam(struct net_device *dev,
return -EINVAL;
}
- if (port->caps.transceiver == PRESTERA_PORT_TCVR_SFP) {
- netdev_err(dev, "FEC set is not allowed on non-SFP ports\n");
- return -EINVAL;
- }
-
fec = PRESTERA_PORT_FEC_MAX;
for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) {
if ((port_fec_caps[mode].eth_fec & fecparam->fec) &&
--
2.50.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [EXTERNAL] [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports
2026-02-05 9:19 [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports Alok Tiwari
@ 2026-02-05 10:49 ` Elad Nachman
2026-02-07 4:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Elad Nachman @ 2026-02-05 10:49 UTC (permalink / raw)
To: Alok Tiwari, Taras Chornyi [C], Volodymyr Mytnyk [C],
Vadym Kochan [C], pabeni@redhat.com, kuba@kernel.org,
edumazet@google.com, davem@davemloft.net, andrew+netdev@lunn.ch,
netdev@vger.kernel.org
Cc: alok.a.tiwarilinux@gmail.com
>
>
> From: Alok Tiwari <alok.a.tiwari@oracle.com>
> Sent: Thursday, February 5, 2026 11:20 AM
> To: Elad Nachman <enachman@marvell.com>; Taras Chornyi [C] <tchornyi@marvell.com>; Volodymyr Mytnyk [C] <vmytnyk@marvell.com>; Vadym Kochan [C] <vkochan@marvell.com>; pabeni@redhat.com; kuba@kernel.org; edumazet@google.com; davem@davemloft.net; andrew+netdev@lunn.ch; netdev@vger.kernel.org
> Cc: alok.a.tiwarilinux@gmail.com; alok.a.tiwari@oracle.com
> Subject: [EXTERNAL] [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports
>
> In prestera_ethtool_set_fecparam(), the error message is opposite of
> the condition checking PRESTERA_PORT_TCVR_SFP. FEC configuration is
> not allowed on SFP ports, but the message says "non-SFP ports", which
> does not match the condition. However, FEC may be required depending on
> the transceiver, cable, or mode, and firmware already validates invalid
> combinations.
>
> Remove the SFP transceiver check and let firmware handle validation.
>
> Signed-off-by: Alok Tiwari <mailto:alok.a.tiwari@oracle.com>
> ---
> v1 -> v2
> remove condition of if (port->caps.transceiver ==
> PRESTERA_PORT_TCVR_SFP) check instead of error message correction
> ---
> drivers/net/ethernet/marvell/prestera/prestera_ethtool.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
> index 2f52daba58e6..750c72f628e5 100644
> --- a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
> +++ b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
> @@ -717,11 +717,6 @@ static int prestera_ethtool_set_fecparam(struct net_device *dev,
> return -EINVAL;
> }
>
> - if (port->caps.transceiver == PRESTERA_PORT_TCVR_SFP) {
> - netdev_err(dev, "FEC set is not allowed on non-SFP ports\n");
> - return -EINVAL;
> - }
> -
> fec = PRESTERA_PORT_FEC_MAX;
> for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) {
> if ((port_fec_caps[mode].eth_fec & fecparam->fec) &&
> --
> 2.50.1
>
Acked-by: Elad Nachman <enachman@marvell.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports
2026-02-05 9:19 [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports Alok Tiwari
2026-02-05 10:49 ` [EXTERNAL] " Elad Nachman
@ 2026-02-07 4:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-02-07 4:20 UTC (permalink / raw)
To: Alok Tiwari
Cc: enachman, tchornyi, vmytnyk, vkochan, pabeni, kuba, edumazet,
davem, andrew+netdev, netdev, alok.a.tiwarilinux
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 5 Feb 2026 01:19:55 -0800 you wrote:
> In prestera_ethtool_set_fecparam(), the error message is opposite of
> the condition checking PRESTERA_PORT_TCVR_SFP. FEC configuration is
> not allowed on SFP ports, but the message says "non-SFP ports", which
> does not match the condition. However, FEC may be required depending on
> the transceiver, cable, or mode, and firmware already validates invalid
> combinations.
>
> [...]
Here is the summary with links:
- [v2,net-next] net: marvell: prestera: fix FEC error message for SFP ports
https://git.kernel.org/netdev/net-next/c/dddb0198c2a8
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] 3+ messages in thread
end of thread, other threads:[~2026-02-07 4:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 9:19 [PATCH v2 net-next] net: marvell: prestera: fix FEC error message for SFP ports Alok Tiwari
2026-02-05 10:49 ` [EXTERNAL] " Elad Nachman
2026-02-07 4:20 ` 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