From: Greg KH <greg@kroah.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
linux-usb@vger.kernel.org,
Yehezkel Bernat <YehezkelShB@gmail.com>,
Lukas Wunner <lukas@wunner.de>,
Andreas Noever <andreas.noever@gmail.com>,
Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH 5/9] thunderbolt / net: Let the service drivers configure interrupt throttling
Date: Tue, 28 Apr 2026 12:10:49 -0600 [thread overview]
Message-ID: <2026042827-pep-deeply-edc9@gregkh> (raw)
In-Reply-To: <20260428172629.GW557136@black.igk.intel.com>
On Tue, Apr 28, 2026 at 07:26:29PM +0200, Mika Westerberg wrote:
> On Tue, Apr 28, 2026 at 04:59:58PM +0200, Andrew Lunn wrote:
> > On Tue, Apr 28, 2026 at 09:22:05AM +0200, Mika Westerberg wrote:
> > > Instead of the core driver programming fixed value for throttling let
> > > the service drivers to specify the interval if they need this. We also
> > > allow user to tune this through a module parameter if the default is not
> > > good fit.
> > >
> > > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> > > ---
> > > drivers/net/thunderbolt/main.c | 7 ++++
> > > drivers/thunderbolt/dma_test.c | 5 +++
> > > drivers/thunderbolt/nhi.c | 58 ++++++++++++++++++----------------
> > > drivers/thunderbolt/nhi_regs.h | 3 +-
> > > include/linux/thunderbolt.h | 5 +++
> > > 5 files changed, 50 insertions(+), 28 deletions(-)
> > >
> > > diff --git a/drivers/net/thunderbolt/main.c b/drivers/net/thunderbolt/main.c
> > > index 49673f7e0055..8771ca807933 100644
> > > --- a/drivers/net/thunderbolt/main.c
> > > +++ b/drivers/net/thunderbolt/main.c
> > > @@ -218,6 +218,10 @@ static bool tbnet_e2e = true;
> > > module_param_named(e2e, tbnet_e2e, bool, 0444);
> > > MODULE_PARM_DESC(e2e, "USB4NET full end-to-end flow control (default: true)");
> > >
> > > +static unsigned int tbnet_throttling = 128000;
> > > +module_param_named(throttling, tbnet_throttling, uint, 0444);
> > > +MODULE_PARM_DESC(throttling, "Interrupt throttling rate in ns (default: 128000)");
> >
> > As i mentioned elsewhere, netdev does not allow module
> > parameters. They are hard to use, especially when you have lots of
> > instances of a device, or you need to set it on the kernel command
> > line because by the time the kernel has booted, it is too late, etc.
> > And they are undocumented, and every driver does it differently.
>
> Right. This was meant to be a "chicken bit" or "escape hatch" not something
> used in daily basis.
Put it in configfs if you really want it.
You shouldn't need any new module parameters.
thanks,
greg k-h
next prev parent reply other threads:[~2026-04-28 18:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 7:22 [PATCH 0/9] thunderbolt: Introduce USB4STREAM Mika Westerberg
2026-04-28 7:22 ` [PATCH 1/9] thunderbolt: Add tb_property_merge_dir() Mika Westerberg
2026-04-28 7:22 ` [PATCH 2/9] thunderbolt: Add KUnit test for tb_property_merge_dir() Mika Westerberg
2026-04-28 7:22 ` [PATCH 3/9] thunderbolt: Allow service drivers to specify their own properties Mika Westerberg
2026-04-28 7:22 ` [PATCH 4/9] thunderbolt / net: Move ring_frame_size() to thunderbolt.h Mika Westerberg
2026-04-28 7:22 ` [PATCH 5/9] thunderbolt / net: Let the service drivers configure interrupt throttling Mika Westerberg
2026-04-28 14:59 ` Andrew Lunn
2026-04-28 17:26 ` Mika Westerberg
2026-04-28 18:10 ` Greg KH [this message]
2026-04-28 7:22 ` [PATCH 6/9] thunderbolt: Add helper to figure size of the ring Mika Westerberg
2026-04-28 7:22 ` [PATCH 7/9] thunderbolt: Add tb_ring_flush() Mika Westerberg
2026-04-28 7:22 ` [PATCH 8/9] thunderbolt: Add support for ConfigFS Mika Westerberg
2026-04-28 7:22 ` [PATCH 9/9] thunderbolt: Add support for USB4STREAM Mika Westerberg
2026-04-28 11:57 ` Greg KH
2026-04-28 12:03 ` Mika Westerberg
2026-04-28 13:54 ` Greg KH
2026-04-28 14:11 ` Mika Westerberg
2026-04-28 18:10 ` Greg KH
2026-04-28 15:08 ` Andrew Lunn
2026-04-28 15:13 ` Mika Westerberg
2026-04-28 16:45 ` Andrew Lunn
2026-04-28 17:24 ` Mika Westerberg
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=2026042827-pep-deeply-edc9@gregkh \
--to=greg@kroah.com \
--cc=YehezkelShB@gmail.com \
--cc=alan.borzeszkowski@linux.intel.com \
--cc=andreas.noever@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mika.westerberg@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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