Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp449859pxy; Fri, 30 Apr 2021 08:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkCKHEWYGftCG/3PaY2Nupstt//Ef8OPL+MJL4m0t++Dyy+HwPdyS+gju/7PO4jWyp10+U X-Received: by 2002:a05:6402:78b:: with SMTP id d11mr6804611edy.257.1619797430619; Fri, 30 Apr 2021 08:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619797430; cv=none; d=google.com; s=arc-20160816; b=n/taz4oCgR9BoEtWJ5qlHatlQZy6/u6D5VuL38ND6ycFqj246ypkVyejWV8j4CuNQ8 XX+qUOzzKNhlqnqK39U0ldp9HMr4E3TxwZU40X8h2ZKs/SD7GPcJ4f5LfUZvDJpLRnf6 Fas+C8dhW/6hHkyG95NbxCaM6lx89PTxmQ7iX9N6me9OASXDjK0FV4OpeM5LxvJKLIyv /GoSXQ5RD+KLQ55zaF/2PI6+sCIqKr8VWazEuvz82sOM8tJLQUpC1hfduaPjgNqnBTS8 MaG4Oi47/H4gf9+PqPd0BigUU5zY8SW+8EqQ2Uj/7ylshgBzL//fHVY/dZcpL11HyoIo Gmgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=KdQSE1kWE61cTSthsOdcyvvs8MlvvXgukVEj8raUnEA=; b=tA4+gex1nFnMWekkwH7tYuGnNyDkGs5ZsgyBep84HZwVL514EyJg2ZK1W0vUyKrO1n Sh3CeUZsb+rUOYOd/jkjBKkHEqc0qF93LvXU74SM/t9+Eet5rQvsZv0DPXY+vR0rKzkE elt0STlmZF3c+DEdItgwHuRUvz/Hw+DS6CpUF6mJtD0SwTBmg6htlzSB+6KFn4okBNM7 WuSCjRFegunymYuqtWx0FeHvcPdvYUmme/FSomHsLGl+7wI87B+/6xgL24H0C+0vWlU/ utVk965GgAtbcaY7lvJhVOlQhbn1RxWMEEoKmn/ZymS0LHzab0YUd9VqWZkuUxMOwGiD XE+w== 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 w24si4131290ejb.528.2021.04.30.08.43.26; Fri, 30 Apr 2021 08:43:50 -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 S231154AbhD3Pmy (ORCPT + 99 others); Fri, 30 Apr 2021 11:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbhD3Pmx (ORCPT ); Fri, 30 Apr 2021 11:42:53 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B0E0C06174A for ; Fri, 30 Apr 2021 08:42:05 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcVHA-0005oA-Q4; Fri, 30 Apr 2021 17:41:56 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lcVH7-0007ic-IQ; Fri, 30 Apr 2021 17:41:53 +0200 Date: Fri, 30 Apr 2021 17:41:53 +0200 From: Oleksij Rempel To: Randy Dunlap Cc: Shawn Guo , Sascha Hauer , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Fugang Duan , Geert Uytterhoeven , kernel@pengutronix.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , David Jander , Russell King , Philippe Schenker Subject: Re: [PATCH net-next v1 1/1] net: selftest: provide option to disable generic selftests Message-ID: <20210430154153.zhdnxzkm2fhcuogo@pengutronix.de> References: <20210430095308.14465-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 17:34:20 up 149 days, 5:40, 45 users, load average: 0.06, 0.06, 0.02 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 08:13:12AM -0700, Randy Dunlap wrote: > On 4/30/21 2:53 AM, Oleksij Rempel wrote: > > Some systems may need to disable selftests to reduce kernel size or for > > some policy reasons. This patch provide option to disable generic selftests. > > > > Reported-by: Geert Uytterhoeven > > Fixes: 3e1e58d64c3d ("net: add generic selftest support") > > Signed-off-by: Oleksij Rempel > > --- > > net/Kconfig | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/net/Kconfig b/net/Kconfig > > index f5ee7c65e6b4..dac98c73fcd8 100644 > > --- a/net/Kconfig > > +++ b/net/Kconfig > > @@ -431,7 +431,12 @@ config SOCK_VALIDATE_XMIT > > > > config NET_SELFTESTS > > def_tristate PHYLIB > > + prompt "Support for generic selftests" > > depends on PHYLIB && INET > > + help > > + These selftests are build automatically if any driver with generic > > built > > > + selftests support is enabled. This option can be used to disable > > + selftests to reduce kernel size. > > > > config NET_SOCK_MSG > > bool > > > > 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. This tests extend functionality of cable tests, which are not optional. Disabling it by default makes even less sense, at least for me. It depends on PHYLIB, if PHYLIB is build as module, this this part should be build as module too. And since Geert asking to make it optional, I provided this patch. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |