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 EFBA1C433FE for ; Wed, 22 Dec 2021 20:56:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236782AbhLVU4A (ORCPT ); Wed, 22 Dec 2021 15:56:00 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:50824 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhLVU4A (ORCPT ); Wed, 22 Dec 2021 15:56:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A7831B81DA9; Wed, 22 Dec 2021 20:55:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B894C36AE8; Wed, 22 Dec 2021 20:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640206557; bh=PIW6wwqIOxe4oZtT//vimt3dQLuUmUszra79YvipIKc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=caEy7wNxFUmKoTHPTDG32oHoGU/DhhYcLdFXPWc5gY6hKlDlSIV/TUEbvOIKJjyAr rnKO8dmcAebYMsatl8CkW9tUDAz+ZMaAEGgab+rdtpj0mhbjmfO+EsqhLcXiT6RNVz 0YaBXJ6ikGkrADCE1sngt36DzyVdhHbmLuNcdUiIHzQic4j4QS2TnoKe3AhateSny9 NVGiRrYh2Xj70sCD8moG3BAff9a2ftPVHSoV0A7R55bbyhr96dG2RTHdfVvD1ykEU1 u7n80KIpS5XbdXAiUuFFmw8NvKQhipru6o1u+H/5KCJ7omVdXdk9nrKtr/SXawmhmW pRUpIooyoNNjg== Date: Wed, 22 Dec 2021 12:55:55 -0800 From: Jakub Kicinski To: Miquel Raynal 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: <20211222125555.576e60b3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20211222155743.256280-9-miquel.raynal@bootlin.com> References: <20211222155743.256280-1-miquel.raynal@bootlin.com> <20211222155743.256280-9-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.