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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 124C7C43217 for ; Tue, 4 Jan 2022 14:41:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234316AbiADOl5 convert rfc822-to-8bit (ORCPT ); Tue, 4 Jan 2022 09:41:57 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:55833 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbiADOl4 (ORCPT ); Tue, 4 Jan 2022 09:41:56 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 3FDDF24000C; Tue, 4 Jan 2022 14:41:53 +0000 (UTC) Date: Tue, 4 Jan 2022 15:41:51 +0100 From: Miquel Raynal To: Jakub Kicinski Cc: "David S. Miller" , netdev@vger.kernel.org, Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org, David Girault , Romuald Despres , Frederic Blain , Thomas Petazzoni , Subject: Re: [net-next 08/18] net: ieee802154: Add support for internal PAN management Message-ID: <20220104154151.0d592bff@xps13> In-Reply-To: <20211222125555.576e60b3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20211222155743.256280-1-miquel.raynal@bootlin.com> <20211222155743.256280-9-miquel.raynal@bootlin.com> <20211222125555.576e60b3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jakub, kuba@kernel.org wrote on Wed, 22 Dec 2021 12:55:55 -0800: > On Wed, 22 Dec 2021 16:57:33 +0100 Miquel Raynal wrote: > > +/* Maximum number of PAN entries to store */ > > +static int max_pan_entries = 100; > > +module_param(max_pan_entries, uint, 0644); > > +MODULE_PARM_DESC(max_pan_entries, > > + "Maximum number of PANs to discover per scan (default is 100)"); > > + > > +static int pan_expiration = 60; > > +module_param(pan_expiration, uint, 0644); > > +MODULE_PARM_DESC(pan_expiration, > > + "Expiration of the scan validity in seconds (default is 60s)"); > > Can these be per-device control knobs? Module params are rarely the > best answer. I believe we can do that on a per FFD device basis (for now it will be on a per-device basis, but later when we will have the necessary information we might do something more fine grained). Would a couple of sysfs entries work? Thanks, Miquèl