netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Configuring ethernet link fails with No such device
@ 2016-04-11 22:46 Stefan Agner
  2016-04-11 23:10 ` Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Agner @ 2016-04-11 22:46 UTC (permalink / raw)
  To: systemd-devel, netdev, davem
  Cc: fabio.estevam, l.stach, u.kleine-koenig, bryan.wu, bob.ham

Hi All,

I traced an issue in which we tried configuring duplex mode and speed in
a systemd-udevd .link file failed with the following error:
"Could not set speed or duplex of eth0 to 0 Mbps (half): No such device"

The FEC driver (fec_main.c) does not initialize phy_dev until the device
has been opened, and therefor the callback fec_enet_(get|set)_settings
returns -19.

What is the expectation/definition when link configuration should be
possible? Only after the network device got opened or before?

Or in other words: Is this a Kernel or systemd issue? At what point is
link configuration "guaranteed" to work?

It seems that the FEC driver used to probe the PHY earlier, it has been
moved to the open callback with commit 418bd0d4df ("netdev/fec: fix
ifconfig eth0 down hang issue")...

There has been a similar report on the systemd-devel mailing list a
while ago, probably the same underlying issue:
https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg33186.html

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

end of thread, other threads:[~2016-04-13  1:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 22:46 Configuring ethernet link fails with No such device Stefan Agner
2016-04-11 23:10 ` Florian Fainelli
2016-04-12  1:29 ` David Miller
2016-04-12  7:25   ` Stefan Agner
2016-04-12  8:58 ` Bob Ham
2016-04-12 15:44   ` David Miller
2016-04-13  1:29     ` Stefan Agner

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).