From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 501F4C433ED for ; Fri, 30 Apr 2021 12:31:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22D9B6145A for ; Fri, 30 Apr 2021 12:31:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbhD3Mc2 (ORCPT ); Fri, 30 Apr 2021 08:32:28 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47662 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbhD3McZ (ORCPT ); Fri, 30 Apr 2021 08:32:25 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lcSIt-001oJw-J3; Fri, 30 Apr 2021 14:31:31 +0200 Date: Fri, 30 Apr 2021 14:31:31 +0200 From: Andrew Lunn To: Geert Uytterhoeven Cc: Oleksij Rempel , Shawn Guo , Sascha Hauer , Florian Fainelli , Heiner Kallweit , Fugang Duan , Sascha Hauer , netdev , Linux ARM , Linux Kernel Mailing List , NXP Linux Team , Fabio Estevam , David Jander , Russell King , Philippe Schenker Subject: Re: [PATCH net-next v3 3/6] net: add generic selftest support Message-ID: References: <20210419130106.6707-1-o.rempel@pengutronix.de> <20210419130106.6707-4-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > Thanks for your patch, which is now commit 3e1e58d64c3d0a67 ("net: add > generic selftest support") upstream. > > > --- a/net/Kconfig > > +++ b/net/Kconfig > > @@ -429,6 +429,10 @@ config GRO_CELLS > > config SOCK_VALIDATE_XMIT > > bool > > > > +config NET_SELFTESTS > > + def_tristate PHYLIB > > Why does this default to enabled if PHYLIB=y? > Usually we allow the user to make selftests modular, independent of the > feature under test, but I may misunderstand the purpose of this test. Maybe there is a misunderstanding here with 'selftest'. The name page for ethtool(1) says: -t --test Executes adapter selftest on the specified network device. Pos‐ sible test modes are: offline Perform full set of tests, possibly interrupting normal op‐ eration during the tests, online Perform limited set of tests, not interrupting normal opera‐ tion, external_lb Perform full set of tests, as for offline, and additionally an external-loopback test. This feature has nothing to do with tools/testing/selftests. It predates that by decades. Andrew