netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* best way to disable ANEG and force ethernet link?
@ 2022-01-21 17:20 Tim Harvey
  2022-01-21 21:17 ` Andrew Lunn
  2022-01-22  9:33 ` Heiner Kallweit
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Harvey @ 2022-01-21 17:20 UTC (permalink / raw)
  To: netdev

Greetings,

I'm troubleshooting a network issue and am looking for the best way to
force link speed/duplex without using auto-negotiation.

What is the best way to do this in Linux? Currently from a userspace
perspective I have only been able to using 'ifconfig' to bring the
link up, then 'mii-tool -F 100baseTx-FD <dev>' to force it. The
ethtool methods do not work on my MAC/PHY (not clear what ethtool
support is needed for that on a driver level). For testing purposes I
would like to avoid the link coming up at 1000mbps in the first place
and force it to 100mbps.

Before hacking the heck out of the phy layer in the kernel I was
hoping for some advice for the best place to do this.

In case it matters I have two boards that I would like to do this on:
an IMX8MM with FEC MAC and a CN803X with an RGMII (thunderx) vnic MAC.
Both have a GPY111 (Intel Xway) PHY.

Best regards,

Tim

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

end of thread, other threads:[~2022-01-22  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-21 17:20 best way to disable ANEG and force ethernet link? Tim Harvey
2022-01-21 21:17 ` Andrew Lunn
2022-01-22  9:33 ` Heiner Kallweit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).