ionic: Report additional media types from firmware
Subsystems (3)
PATCH 1/1 ionic: Report additional media types from firmware
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.
--- 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(-)
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c +6 -3
@@ -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 ;
drivers/net/ethernet/pensando/ionic/ionic_if.h +6 -0
@@ -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
Signature · 1 line
2.17.1
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · 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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html