Re: [RFC] managing PHY carrier from user space

2018-09-11 Thread Joakim Tjernlund
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 l

Re: [RFC] managing PHY carrier from user space

2018-09-11 Thread Florian Fainelli
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

[RFC] managing PHY carrier from user space

2018-09-11 Thread Joakim Tjernlund
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. I came up with a new 'phy_carrier' attribute in /sys/class/net/eth0/phydev where I can induce carrier