From: Leon Romanovsky <leon@kernel.org>
To: "Samudrala, Sridhar" <sridhar.samudrala@intel.com>
Cc: Leon Romanovsky <leon@ikernel.org>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
sudheer.mogilappagari@intel.com, amritha.nambiar@intel.com,
jiri@nvidia.com
Subject: Re: [PATCH net-next 0/2][pull request] 10GbE Intel Wired LAN Driver Updates 2022-03-10
Date: Fri, 11 Mar 2022 18:24:16 +0200 [thread overview]
Message-ID: <Yit3sLq6b+ZNZ07j@unreal> (raw)
In-Reply-To: <0e672d96-5b68-4445-482f-1fc4c55e8f45@intel.com>
On Fri, Mar 11, 2022 at 09:19:23AM -0600, Samudrala, Sridhar wrote:
> On 3/10/2022 10:34 PM, Leon Romanovsky wrote:
> > On Thu, Mar 10, 2022 at 03:12:33PM -0800, Tony Nguyen wrote:
> > > Sudheer Mogilappagari says:
> > >
> > > Add support to enable inline flow director which allows uniform
> > > distribution of flows among queues of a TC. This is configured
> > > on a per TC basis using devlink interface.
> > >
> > > Devlink params are registered/unregistered during TC creation
> > > at runtime. To allow that commit 7a690ad499e7 ("devlink: Clean
> > > not-executed param notifications") needs to be reverted.
> > >
> > > The following are changes since commit 3126b731ceb168b3a780427873c417f2abdd5527:
> > > net: dsa: tag_rtl8_4: fix typo in modalias name
> > > and are available in the git repository at:
> > > git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 10GbE
> > >
> > > Kiran Patil (1):
> > > ice: Add inline flow director support for channels
> > >
> > > Sridhar Samudrala (1):
> > > devlink: Allow parameter registration/unregistration during runtime
> > Sorry, NO to whole series.
> >
> > I don't see any explanation why it is good idea and must-to-be
> > implemented one to configure global TC parameter during runtime.
>
> This parameter is applicable only after splitting the netdevice queues into
> queue groups(TCs) via tc mqprio command.
> The queue groups can be created/destroyed during runtime.
> So the patch is trying to register/unregister this parameter when TCs are
> created and destroyed.
>
> >
> > You created TC with special tool, you should use that tool to configure
> > TC and not devlink. Devlink parameters can be seen as better replacement
> > of module parameters, which are global by nature. It means that this
> > tc_inline_fd can be configured without relation if TC was created or
> > not.
>
> Extending tc qdisc mqprio to add this parameter is an option we could explore.
> Not sure if it allows changing parameters without reloading the qdisc.
It was one of the options. I don't mind if it is going to be in devlink
or TC, as long as devlink_params_register() is not changed to be dynamic.
>
> >
> > I didn't look too deeply in revert patch, but from glance view it
> > is not correct too as it doesn't have any protection from users
> > who will try to configure params during devlink_params_unregister().
>
> Is there any limitation that devlink params can be registered only during
> probe time?
Yes, we don't want races between userspace that tries to access devlink
parameters and kernel code that adds/deletes them.
> Would it be OK if we register this parameter during probe time, but allow
> changing it only after TCs are created?
Of course, this is exactly how it is supposed to be.
For an example, see commit e890acd5ff18 ("net/mlx5: Add devlink flow_steering_mode parameter")
In your case, you will have some sort of "if (!tc_configured) ..." line
that will prevent to set this parameter.
Thanks
>
> -Sridhar
>
prev parent reply other threads:[~2022-03-11 16:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-10 23:12 [PATCH net-next 0/2][pull request] 10GbE Intel Wired LAN Driver Updates 2022-03-10 Tony Nguyen
2022-03-10 23:12 ` [PATCH net-next 1/2] devlink: Allow parameter registration/unregistration during runtime Tony Nguyen
2022-03-11 4:33 ` Jakub Kicinski
2022-03-11 6:21 ` Leon Romanovsky
2022-03-11 6:28 ` Jakub Kicinski
2022-03-10 23:12 ` [PATCH net-next 2/2] ice: Add inline flow director support for channels Tony Nguyen
2022-03-11 4:34 ` Jakub Kicinski
2022-03-11 18:36 ` Samudrala, Sridhar
2022-03-11 20:49 ` Jakub Kicinski
2022-03-13 22:11 ` Samudrala, Sridhar
2022-03-14 20:11 ` Jakub Kicinski
2022-03-11 4:34 ` [PATCH net-next 0/2][pull request] 10GbE Intel Wired LAN Driver Updates 2022-03-10 Leon Romanovsky
2022-03-11 15:19 ` Samudrala, Sridhar
2022-03-11 16:24 ` Leon Romanovsky [this message]
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=Yit3sLq6b+ZNZ07j@unreal \
--to=leon@kernel.org \
--cc=amritha.nambiar@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=jiri@nvidia.com \
--cc=kuba@kernel.org \
--cc=leon@ikernel.org \
--cc=netdev@vger.kernel.org \
--cc=sridhar.samudrala@intel.com \
--cc=sudheer.mogilappagari@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.