[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <75281de4-d50d-76fd-8de9-606001a4d93a@free.fr>
Date: Thu, 12 Jan 2017 17:22:14 +0100
From: Mason <slash.tmp@...e.fr>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev <netdev@...r.kernel.org>, Mans Rullgard <mans@...sr.com>,
Florian Fainelli <f.fainelli@...il.com>,
Thibaud Cornic <thibaud_cornic@...madesigns.com>
Subject: Re: Setting link down or up in software
On 12/01/2017 16:28, Andrew Lunn wrote:
> Mason wrote:
>
>> Here's an example of "Link is Down" printed when I set link up:
>>
>> At [ 62.750220] I run ip link set dev eth0 down
>> Then leave the system idle for 10 minutes.
>> At [ 646.263041] I run ip link set dev eth0 up
>> At [ 647.364079] it prints "Link is Down"
>> At [ 649.417434] it prints "Link is Up - 1Gbps/Full - flow control rx/tx"
>
> Purely a guess, but when you up the interface, it starts auto
> negotiation. That often involves resetting the PHY. If the PHY has
> already once completed autoneg, e.g. because of the boot loader, it
> will be initially UP. The reset will put it DOWN, and then once
> autoneg is complete, it will be Up again.
>
> Pure guess. Go read the code and see if i'm write.
Thanks for giving me some food for thought, although the net framework
is far from easy to navigate. (So I'm not sure "go read the code" will
take me anywhere in the short term.)
Whatever the reason for the symptoms I'm seeing, some kind of race
condition must be involved, because it occurs randomly.
Regards.
Powered by blists - more mailing lists