* [PATCH net-next] ionic: Report additional media types from firmware
@ 2026-03-06 21:56 Eric Joyner
2026-03-11 2:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Eric Joyner @ 2026-03-06 21:56 UTC (permalink / raw)
To: netdev
Cc: Brett Creeley, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Eric Joyner
The device firmware supports reporting more media types than what was
there in the past, so map these new media types to existing ethtool
bits, which appears to be what other drivers do for media types that
match speeds but not physical spec.
And while here, make a very small cleanup in ionic_get_link_ksettings()
to remove some unnecessary code duplication.
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Eric Joyner <eric.joyner@amd.com>
---
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 9 ++++++---
drivers/net/ethernet/pensando/ionic/ionic_if.h | 6 ++++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
index 1514c1019f28..78a802eb159f 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
@@ -188,10 +188,9 @@ static int ionic_get_link_ksettings(struct net_device *netdev,
case IONIC_XCVR_PID_QSFP_100G_CWDM4:
case IONIC_XCVR_PID_QSFP_100G_PSM4:
case IONIC_XCVR_PID_QSFP_100G_LR4:
- ethtool_link_ksettings_add_link_mode(ks, supported,
- 100000baseLR4_ER4_Full);
- break;
case IONIC_XCVR_PID_QSFP_100G_ER4:
+ case IONIC_XCVR_PID_QSFP_100G_FR4:
+ case IONIC_XCVR_PID_QSFP_100G_DR4:
ethtool_link_ksettings_add_link_mode(ks, supported,
100000baseLR4_ER4_Full);
break;
@@ -212,6 +211,7 @@ static int ionic_get_link_ksettings(struct net_device *netdev,
break;
case IONIC_XCVR_PID_QSFP_200G_AOC:
case IONIC_XCVR_PID_QSFP_200G_SR4:
+ case IONIC_XCVR_PID_QSFP_200G_AEC:
ethtool_link_ksettings_add_link_mode(ks, supported,
200000baseSR4_Full);
break;
@@ -232,6 +232,9 @@ static int ionic_get_link_ksettings(struct net_device *netdev,
400000baseDR4_Full);
break;
case IONIC_XCVR_PID_QSFP_400G_SR4:
+ case IONIC_XCVR_PID_QSFP_400G_AOC:
+ case IONIC_XCVR_PID_QSFP_400G_AEC:
+ case IONIC_XCVR_PID_QSFP_400G_LPO:
ethtool_link_ksettings_add_link_mode(ks, supported,
400000baseSR4_Full);
break;
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_if.h b/drivers/net/ethernet/pensando/ionic/ionic_if.h
index 47559c909c8b..23d6e2b4791e 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_if.h
+++ b/drivers/net/ethernet/pensando/ionic/ionic_if.h
@@ -1341,6 +1341,12 @@ enum ionic_xcvr_pid {
IONIC_XCVR_PID_QSFP_400G_DR4 = 80,
IONIC_XCVR_PID_QSFP_400G_SR4 = 81,
IONIC_XCVR_PID_QSFP_400G_VR4 = 82,
+ IONIC_XCVR_PID_QSFP_400G_AOC = 83,
+ IONIC_XCVR_PID_QSFP_400G_AEC = 84,
+ IONIC_XCVR_PID_QSFP_200G_AEC = 85,
+ IONIC_XCVR_PID_QSFP_400G_LPO = 86,
+ IONIC_XCVR_PID_QSFP_100G_FR4 = 87,
+ IONIC_XCVR_PID_QSFP_100G_DR4 = 88,
};
/**
base-commit: 1a9940317c1b46b7641af6b4b14c9d2509ac88b2
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] ionic: Report additional media types from firmware
2026-03-06 21:56 [PATCH net-next] ionic: Report additional media types from firmware Eric Joyner
@ 2026-03-11 2:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-03-11 2:40 UTC (permalink / raw)
To: Eric Joyner
Cc: netdev, brett.creeley, andrew+netdev, davem, edumazet, kuba,
pabeni
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 6 Mar 2026 13:56:34 -0800 you wrote:
> The device firmware supports reporting more media types than what was
> there in the past, so map these new media types to existing ethtool
> bits, which appears to be what other drivers do for media types that
> match speeds but not physical spec.
>
> And while here, make a very small cleanup in ionic_get_link_ksettings()
> to remove some unnecessary code duplication.
>
> [...]
Here is the summary with links:
- [net-next] ionic: Report additional media types from firmware
https://git.kernel.org/netdev/net-next/c/1f9cab56e79e
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] 2+ messages in thread
end of thread, other threads:[~2026-03-11 2:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06 21:56 [PATCH net-next] ionic: Report additional media types from firmware Eric Joyner
2026-03-11 2:40 ` 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