lkml.org 
[lkml]   [2018]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC net-next 0/5] Support for PHY test modes
    On Tue, May 01, 2018 at 10:21:54AM -0700, Florian Fainelli wrote:
    > On 04/30/2018 04:24 PM, Andrew Lunn wrote:
    > >> Turning these tests on will typically result in the link partner
    > >> dropping the link with us, and the interface will be non-functional as
    > >> far as the data path is concerned (similar to an isolation mode). This
    > >> might warrant properly reporting that to user-space through e.g: a
    > >> private IFF_* value maybe?
    > >
    > > Hi Florian
    > >
    > > I think a IFF_* value would be a good idea. We want to give the user
    > > some indicate why they don't have working networking. ip link show
    > > showing PHY-TEST-MODE would help.
    >
    > IF_OPER_TESTING as defined in RFC 2863 looks like the correct way to
    > signal that. I did a quick test and setting operstate to
    > IFF_OPER_TESTING seems to correctly get reflected by iproute2/ifconfig
    > which no longer see RUNNING though the interface is still UP.

    Hi Florian

    I should really play with this.... but is the opstate printed by ip
    link show? Not showing RUNNING is not the best hint something else is
    going on. Actually saying TESTING somewhere is much clearer.

    Andrew

    \
     
     \ /
      Last update: 2018-05-01 19:49    [W:2.645 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site