public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: marvell: prestera: fix FEC error message for SFP ports
@ 2026-02-02  5:28 Alok Tiwari
  2026-02-02  9:47 ` [EXTERNAL] " Elad Nachman
  2026-02-02 10:26 ` Jonas Gorski
  0 siblings, 2 replies; 7+ messages in thread
From: Alok Tiwari @ 2026-02-02  5:28 UTC (permalink / raw)
  To: tchornyi, vmytnyk, yevhen.orlov, vkochan, taras.chornyi, 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.

Fix the message to match the condition.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
 drivers/net/ethernet/marvell/prestera/prestera_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
index 2f52daba58e6..a259da9f30f4 100644
--- a/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
+++ b/drivers/net/ethernet/marvell/prestera/prestera_ethtool.c
@@ -718,7 +718,7 @@ static int prestera_ethtool_set_fecparam(struct net_device *dev,
 	}
 
 	if (port->caps.transceiver == PRESTERA_PORT_TCVR_SFP) {
-		netdev_err(dev, "FEC set is not allowed on non-SFP ports\n");
+		netdev_err(dev, "FEC set is not allowed on SFP ports\n");
 		return -EINVAL;
 	}
 
-- 
2.50.1


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

end of thread, other threads:[~2026-02-05  3:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02  5:28 [PATCH net-next] net: marvell: prestera: fix FEC error message for SFP ports Alok Tiwari
2026-02-02  9:47 ` [EXTERNAL] " Elad Nachman
2026-02-02 10:26 ` Jonas Gorski
2026-02-04  3:15   ` Jakub Kicinski
2026-02-04 13:13     ` [EXTERNAL] " Elad Nachman
2026-02-05  2:27       ` Jakub Kicinski
2026-02-05  3:16         ` ALOK TIWARI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox