From: Leon Romanovsky <leon@kernel.org>
To: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, M Chetan Kumar <m.chetan.kumar@intel.com>,
Intel Corporation <linuxwwan@intel.com>,
Loic Poulain <loic.poulain@linaro.org>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [PATCH net-next v2 4/4] net: wwan: make debugfs optional
Date: Tue, 7 Dec 2021 10:00:39 +0200 [thread overview]
Message-ID: <Ya8Up73OsIsPnNJN@unreal> (raw)
In-Reply-To: <20211206234155.15578-5-ryazanov.s.a@gmail.com>
On Tue, Dec 07, 2021 at 02:41:55AM +0300, Sergey Ryazanov wrote:
> Debugfs interface is optional for the regular modem use. Some distros
> and users will want to disable this feature for security or kernel
> size reasons. So add a configuration option that allows to completely
> disable the debugfs interface of the WWAN devices.
>
> A primary considered use case for this option was embedded firmwares.
> For example, in OpenWrt, you can not completely disable debugfs, as a
> lot of wireless stuff can only be configured and monitored with the
> debugfs knobs. At the same time, reducing the size of a kernel and
> modules is an essential task in the world of embedded software.
> Disabling the WWAN and IOSM debugfs interfaces allows us to save 50K
> (x86-64 build) of space for module storage. Not much, but already
> considerable when you only have 16MB of storage.
>
> So it is hard to just disable whole debugfs. Users need some fine
> grained set of options to control which debugfs interface is important
> and should be available and which is not.
>
> The new configuration symbol is enabled by default and is hidden under
> the EXPERT option. So a regular user would not be bothered by another
> one configuration question. While an embedded distro maintainer will be
> able to a little more reduce the final image size.
>
> Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
> ---
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
next prev parent reply other threads:[~2021-12-07 8:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 23:41 [PATCH net-next v2 0/4] WWAN debugfs tweaks Sergey Ryazanov
2021-12-06 23:41 ` [PATCH net-next v2 1/4] net: wwan: iosm: consolidate trace port init code Sergey Ryazanov
2021-12-06 23:41 ` [PATCH net-next v2 2/4] net: wwan: iosm: allow trace port be uninitialized Sergey Ryazanov
2021-12-06 23:41 ` [PATCH net-next v2 3/4] net: wwan: iosm: move debugfs knobs into a subdir Sergey Ryazanov
2021-12-06 23:41 ` [PATCH net-next v2 4/4] net: wwan: make debugfs optional Sergey Ryazanov
2021-12-07 8:00 ` Leon Romanovsky [this message]
2021-12-07 0:13 ` [PATCH net-next v2 0/4] WWAN debugfs tweaks Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ya8Up73OsIsPnNJN@unreal \
--to=leon@kernel.org \
--cc=davem@davemloft.net \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linuxwwan@intel.com \
--cc=loic.poulain@linaro.org \
--cc=m.chetan.kumar@intel.com \
--cc=netdev@vger.kernel.org \
--cc=ryazanov.s.a@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).