ixgbe: fix media type detection for E610 device
Subsystems (3)
PATCH v3 1/1 ixgbe: fix media type detection for E610 device
The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.
Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output error
---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added
--- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +3 -1
@@ -1453,9 +1453,11 @@ enum ixgbe_media_type ixgbe_get_media_type_e610(struct ixgbe_hw *hw) hw->link.link_info.phy_type_low =0 ; }else { highest_bit =fls64 (le64_to_cpu (pcaps.phy_type_low)); -if (highest_bit) +if (highest_bit) { hw->link.link_info.phy_type_low =BIT_ULL (highest_bit -1 ); + hw->link.link_info.phy_type_high =0 ; + } } }
Signature · 1 line
2.43.0
Tony Nguyen
maintainerQuoted 21 lines · Piotr Kwapulinski
The commit
23c0e5a16bcc("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output errorFixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")Reviewed-by Przemek Kitszel <[email protected]>Reviewed-by Paul Menzel <[email protected]>Signed-off-by Piotr Kwapulinski <[email protected]>
Quoted 5 lines
---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added
Please remember you must wait at least 24 hours between submissions that include netdev
https://docs.kernel.org/process/maintainer-netdev.html#resending-after-review
Thanks,
Tony
Quoted 21 lines
--- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +3
-1@@ -1453,9 +1453,11 @@ enum ixgbe_media_type ixgbe_get_media_type_e610(struct ixgbe_hw *hw) hw->link.link_info.phy_type_low =0 ; }else { highest_bit =fls64 (le64_to_cpu (pcaps.phy_type_low)); -if (highest_bit) +if (highest_bit) { hw->link.link_info.phy_type_low =BIT_ULL (highest_bit -1 ); + hw->link.link_info.phy_type_high =0 ; + } } }
Quoted 17 lines · Piotr Kwapulinski
The commit
23c0e5a16bcc("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output error
Quoted 4 lines
Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")Reviewed-by Przemek Kitszel <[email protected]>Reviewed-by Paul Menzel <[email protected]>Signed-off-by Piotr Kwapulinski <[email protected]>
Quoted 28 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Friday, February 21, 2025 9:19 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Kwapulinski, Piotr <[email protected]>; Kitszel, Przemyslaw <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net v3] ixgbe: fix media type detection for E610 deviceThe commit
23c0e5a16bcc("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise0x1000000000000modprobe -r ixgbe modprobe ixgbe ethtool -s eth0 advertise0x1000000000000Result before the fix:
netlink error: link settings update failed netlink error: Invalid argument Result after the fix:
No output errorFixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")Reviewed-by Przemek Kitszel <[email protected]>Reviewed-by Paul Menzel <[email protected]>Signed-off-by Piotr Kwapulinski <[email protected]>
Quoted 9 lines
---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added--- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)