From: Jakub Kicinski <kuba@kernel.org>
To: Heng Qi <hengqi@linux.alibaba.com>
Cc: netdev@vger.kernel.org, virtualization@lists.linux.dev,
"David S . Miller" <davem@davemloft.net>,
Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Jason Wang <jasowang@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Brett Creeley <bcreeley@amd.com>,
Ratheesh Kannoth <rkannoth@marvell.com>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
Tal Gilboa <talgi@nvidia.com>, Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Jiri Pirko <jiri@resnulli.us>,
Paul Greenwalt <paul.greenwalt@intel.com>,
Ahmed Zaki <ahmed.zaki@intel.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
Kory Maincent <kory.maincent@bootlin.com>,
Andrew Lunn <andrew@lunn.ch>,
justinstitt@google.com, Simon Horman <horms@kernel.org>
Subject: Re: [PATCH net-next v12 2/4] ethtool: provide customized dim profile management
Date: Wed, 8 May 2024 08:11:39 -0700 [thread overview]
Message-ID: <20240508081139.0a620321@kernel.org> (raw)
In-Reply-To: <1715174806.2456756-1-hengqi@linux.alibaba.com>
On Wed, 8 May 2024 21:26:46 +0800 Heng Qi wrote:
> On Tue, 7 May 2024 19:57:52 -0700, Jakub Kicinski <kuba@kernel.org> wrote:
> > On Sat, 4 May 2024 14:44:45 +0800 Heng Qi wrote:
> > > @@ -1325,6 +1354,8 @@ operations:
> > > - tx-aggr-max-bytes
> > > - tx-aggr-max-frames
> > > - tx-aggr-time-usecs
> > > + - rx-profile
> > > + - tx-profil
> > > dump: *coalesce-get-op
> > > -
> > > name: coalesce-set
> >
> > set probably needs to get the new attributes, too?
>
> I looked at other similar use cases (such as wol, debug) and it doesn't
> seem to be needed?
Sorry, you're right, they are propagated using a YAML alias.
> > > +static int ethnl_update_profile(struct net_device *dev,
> > > + struct dim_cq_moder __rcu **dst,
> > > + const struct nlattr *nests,
> > > + struct netlink_ext_ack *extack)
> >
> > > + rcu_assign_pointer(*dst, new_profile);
> > > + kfree_rcu(old_profile, rcu);
> > > +
> > > + return 0;
> >
> > Don't we need to inform DIM somehow that profile has switched
> > and it should restart itself?
>
> When the profile is modified, dim itself is a dynamic adjustment mechanism
> and will quickly adjust to the appropriate value according to the new profile.
> This is also seen in practice.
Okay, perhaps add a comment to that effect?
next prev parent reply other threads:[~2024-05-08 15:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-04 6:44 [PATCH net-next v12 0/4] ethtool: provide the dim profile fine-tuning channel Heng Qi
2024-05-04 6:44 ` [PATCH net-next v12 1/4] linux/dim: move useful macros to .h file Heng Qi
2024-05-04 6:44 ` [PATCH net-next v12 2/4] ethtool: provide customized dim profile management Heng Qi
2024-05-08 2:57 ` Jakub Kicinski
2024-05-08 13:26 ` Heng Qi
2024-05-08 15:11 ` Jakub Kicinski [this message]
2024-05-08 15:52 ` Heng Qi
2024-05-04 6:44 ` [PATCH net-next v12 3/4] dim: add new interfaces for initialization and getting results Heng Qi
2024-05-04 6:44 ` [PATCH net-next v12 4/4] virtio-net: support dim profile fine-tuning Heng Qi
2024-05-08 2:12 ` [PATCH net-next v12 0/4] ethtool: provide the dim profile fine-tuning channel Heng Qi
2024-05-08 2:47 ` Jakub Kicinski
2024-05-08 15:53 ` Heng Qi
2024-05-08 3:01 ` 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=20240508081139.0a620321@kernel.org \
--to=kuba@kernel.org \
--cc=ahmed.zaki@intel.com \
--cc=aleksander.lobakin@intel.com \
--cc=andrew@lunn.ch \
--cc=bcreeley@amd.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hengqi@linux.alibaba.com \
--cc=horms@kernel.org \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=justinstitt@google.com \
--cc=kory.maincent@bootlin.com \
--cc=linux-doc@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=paul.greenwalt@intel.com \
--cc=rkannoth@marvell.com \
--cc=talgi@nvidia.com \
--cc=virtualization@lists.linux.dev \
--cc=vladimir.oltean@nxp.com \
--cc=xuanzhuo@linux.alibaba.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).