Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp286512pxy; Fri, 30 Apr 2021 05:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHkRODcJpcHvVgoqxOfkxYXU3mb5lBMlY38gA79Eat5JX97baK28a1ByA8RtNssKDUJ3wy X-Received: by 2002:a17:902:8308:b029:e9:d69:a2f with SMTP id bd8-20020a1709028308b02900e90d690a2fmr4995148plb.20.1619786044110; Fri, 30 Apr 2021 05:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619786044; cv=none; d=google.com; s=arc-20160816; b=U1Pj2Rp3fiyZVIw5fvRg/nc9H/92VZaYytnT/f7wLswV8drOW60QZarfihfY8pxfCw TxU1qnzhE6HUcSEeuKAMVpPcW7CpG8G2wAbwyWAwW1cTTDWzN7THOmBs84afhRHq2Tmr Esr67egEpBXV5f3Z4zW3OJlIF/kWLyK9eRbCZ6YePEuVgxInK0pwTvMSibNrxMlRmIMS peEtpGb8ULk8+I1pnNztX7g75zHf2V/oksoijFqR6v9YPJoN9UnJTwX57DKDxYvvxuqy OBvYAQGj1r8fnk6B+dzN1vnEzl48o4OXn3YrsTdLVJgG4LKNmu2GtTkGCQJtkzT39mf+ 6QsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OIYw0r9+8hi/BY7DbGeDQF5/5fGcsFAzEI5ag3TN7xY=; b=B6Icjwrbf/Ax8RArl3r1nX58lY544TLewH+SeR0RZ3z/RD4IOa51I50tzioYkFKb/D zz/hjK33jZ4sLKCt9Hr1ubCwJtTpOkfMd0IU1IXEYdD5svco9IUqHexmscaFpPB8bicO lWhkEs3Xfo3SazqeJj3qJzW+DtyDJb//p5criqxU5RVLL4jAMMWyTfjRJh8DfDU4FA+U UcBxrnbRVyDRv01kPGx8OPBNTE5Dhe/SOq1Pm07OiBshSVCceSH4JdKLIM33QYRorJWw kd6ZfLcdOv+JXrI4Ksed/lBfJN84sBVA48goInUfN1JSmOBQMx9vDrEAA9MuCskeFIc/ Rj1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx8si13742216pjb.97.2021.04.30.05.33.50; Fri, 30 Apr 2021 05:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232197AbhD3Mc1 (ORCPT + 99 others); Fri, 30 Apr 2021 08:32:27 -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: linux-kernel@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