[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YIw2pkVPb69f3rsm@lunn.ch>
Date: Fri, 30 Apr 2021 18:56:06 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Oleksij Rempel <o.rempel@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Fugang Duan <fugang.duan@....com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
kernel@...gutronix.de, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-imx@....com, Fabio Estevam <festevam@...il.com>,
David Jander <david@...tonic.nl>,
Russell King <linux@...linux.org.uk>,
Philippe Schenker <philippe.schenker@...adex.com>
Subject: Re: [PATCH net-next v1 1/1] net: selftest: provide option to disable
generic selftests
On Fri, Apr 30, 2021 at 09:33:42AM -0700, Randy Dunlap wrote:
> On 4/30/21 9:23 AM, Andrew Lunn wrote:
> >>> Thanks for the patch/option. But I think it should just default to n,
> >>> not PHYLIB.
> >>
> >> It should be enabled by default for every device supporting this kind of
> >> selftests.
> >
> > I agree.
> >
> > I still wonder if there is confusion about self test here. Maybe
>
> Probably.
>
> > putting ethtool into the description will help people understand it
> > has nothing to do with the kernel self test infrastructure and kernel
> > self testing.
>
> So it's a hardware check that is required to be run if it's implemented
> in a driver?
>
> Required by who/what?
It is not required, but it is a useful debug tool for the educated
user. Root can run the self tests on the network interface. If the
self test pass, but the interface does not work, you probably have a
cabling or configuration issue. Networking is complex and being able
to eliminate the interface hardware lets you concentrate on some other
part of the problem. You can then maybe next use the cable test option
of ethtool to see if the cable has a problem.
Andrew
Powered by blists - more mailing lists