Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2182649pxb; Thu, 11 Feb 2021 06:29:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9gzXchShdh20KeU/jGeKPOW6WDEeN4AmrrHraEigpsGc7Pusln1VCr0/v4mLh7rC+DbMV X-Received: by 2002:aa7:c944:: with SMTP id h4mr8569235edt.233.1613053798821; Thu, 11 Feb 2021 06:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613053798; cv=none; d=google.com; s=arc-20160816; b=ovXIrxZ0umNohkKqWT7y/MPrhXyep2hDP/1tkBLcOBvx0B0nhzaHnvkWIRGb1DZOYH nhsEr2nEYTZEbM/0qAFbvrpfQ+0tA6YGU2pryP8W9tXJQdw/vxfenPZ95WTfmxYI72lq vWBKzFlHK22C5rfKHbMGHWd4gC4r4f31TiFmXF1DkqAkeAZelKiDkXJ07sBwzgsh1bBp Ldb5zOYV1NC7j7uTXt40sIaor9m3V3ju89w1LytcBIkYEs8pUd1YxADdCXcK8eVCisST uan2K0tFA8FXek6wHPrX7/JypGQE9H1n+Pt4t9M9X4EBatb99K5Kd2XlPexKCfAsNEG4 c0SQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nwiMULi5JbwncvbkloKvtzOOvgJ9ZctsZ3poMnQsPGc=; b=ujTDGyRIFtRqR7ht1+tyfLtaetwFmhjEpONCa2od+ReMbfKfkGtk5e6T57xaza3jIi wcIOF8gBVHqpW+jPHnsWAh2pwnTv2oRcyqD/U/las7mdzOf5J3C6EyfEVmjSnLMisR1p U8YX5LTF+fWWXu3HlzJ1ycL8EUxxOf1QIzJ7dA0yLtcEiBoi/Ahly5bkMIlUqiSSNSCe EHICXsuSwszl7W0HvqYzys9nz7OsJLbMvhdcjWv+oFqbig/TfAHcDn21dYP92x4GLl6b eC1SRDz3CxemYCjvMlhBeFFqVB6xrKB7pVhJ+Stj/owiBDKbpON5zafr5nDH343U/xUK h9oQ== 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 n5si3825993eja.433.2021.02.11.06.29.34; Thu, 11 Feb 2021 06:29:58 -0800 (PST) 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 S232320AbhBKO1v (ORCPT + 99 others); Thu, 11 Feb 2021 09:27:51 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:34938 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbhBKOUL (ORCPT ); Thu, 11 Feb 2021 09:20:11 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lACoV-005aey-Jy; Thu, 11 Feb 2021 15:19:23 +0100 Date: Thu, 11 Feb 2021 15:19:23 +0100 From: Andrew Lunn To: Stefan Chulski Cc: David Miller , "netdev@vger.kernel.org" , "thomas.petazzoni@bootlin.com" , Nadav Haklai , Yan Markman , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "linux@armlinux.org.uk" , "mw@semihalf.com" , "rmk+kernel@armlinux.org.uk" , "atenart@kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "sebastian.hesselbarth@gmail.com" , "gregory.clement@bootlin.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [EXT] Re: [PATCH v12 net-next 12/15] net: mvpp2: add BM protection underrun feature support Message-ID: References: <1612950500-9682-1-git-send-email-stefanc@marvell.com> <1612950500-9682-13-git-send-email-stefanc@marvell.com> <20210210.152924.767175240247395907.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 08:22:19AM +0000, Stefan Chulski wrote: > > > > > ---------------------------------------------------------------------- > > From: > > Date: Wed, 10 Feb 2021 11:48:17 +0200 > > > > > > > > +static int bm_underrun_protect = 1; > > > + > > > +module_param(bm_underrun_protect, int, 0444); > > > +MODULE_PARM_DESC(bm_underrun_protect, "Set BM underrun protect > > > +feature (0-1), def=1"); > > > > No new module parameters, please. > > Ok, I would remove new module parameters. > By the way why new module parameters forbitten? Historically, module parameters are a bad interface for configuration. Vendors have stuffed all sorts of random junk into module parameters. There is little documentation. Different drivers can have similar looking module parameters which do different things. Or different module parameters, which actually do the same thing. But maybe with slightly different parameters. We get a much better overall result if you stop and think for a while. How can this be made a generic configuration knob which multiple vendors could use? And then add it to ethtool. Extend the ethtool -h text and the man page. Maybe even hack some other vendors driver to make use of it. Or we have also found out, that pushing back on parameters like this, the developers goes back and looks at the code, and sometimes figures out a way to automatically do the right thing, removing the configuration knob, and just making it all simpler for the user to use. Andrew