Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-linux: re-apply ethtool on phy attachment #30

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

dangowrt
Copy link
Member

@dangowrt dangowrt commented Jul 5, 2024

ethtool settings applied before the interface is in IFF_UP state are going to be lost when phylink is being used.
This is the case with many modern NICs as well as when using SFP modules, resulting in the speed, duplex, *pause and autoneg settings not having any effect.

Reapply ethtool settings once the PHY is attached.

ethtool settings applied before the interface is in IFF_UP state
are going to be lost when phylink is being used.
This is the case with many modern NICs as well as when using SFP
modules, resulting in the speed, duplex, *pause and autoneg
settings not having any effect.

Reapply ethtool settings once the PHY is attached.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@dangowrt dangowrt requested a review from nbd168 July 5, 2024 18:51
@cdeconinck
Copy link

Tested on Turris Omnia with netfid v2024-01-04 and everything works now

Without this patch, the autoneg setting on the eth2 interface was not taken into account

@openwrt-bot openwrt-bot merged commit 68c8a4f into openwrt:master Aug 1, 2024
@dangowrt dangowrt deleted the ethtool-reapply-on-phy-attach branch August 1, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants