On Tue, 2018-09-11 at 09:56 -0700, Florian Fainelli wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > On 09/11/2018 09:41 AM, Joakim Tjernlund wrote: > > I am looking for a way to induce carrier state from user space, primarily > > for Fixed PHYs as these are always up. ifplugd/dhcp etc. does not behave > > properly > > if the link is up when it really isn't. > > Was my suggestion in my email to you somehow not working? This is > obviously not acceptable for upstream, there is no reason, even for a > fixed PHY, to attempt to mangle with the carrier state for any > reasonable production purposes.
Ohh, I never got that mail. Scanning the netdev archives I found it though, thanks. I will go down the ndo_change_carrier() way and see whether I can work out what to do w.r.t fixed link status callback. Thanks Jocke