From: Joe Damato <jdamato@fastly.com>
To: Stanislav Fomichev <stfomichev@gmail.com>
Cc: "open list:DOCUMENTATION" <linux-doc@vger.kernel.org>,
mkarsten@uwaterloo.ca,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
bjorn@rivosinc.com, Eric Dumazet <edumazet@google.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Daniel Jurgens <danielj@nvidia.com>,
Breno Leitao <leitao@debian.org>,
Mina Almasry <almasrymina@google.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
willemdebruijn.kernel@gmail.com,
Donald Hunter <donald.hunter@gmail.com>,
amritha.nambiar@intel.com, Jonathan Corbet <corbet@lwn.net>,
"open list:MELLANOX MLX4 core VPI driver"
<linux-rdma@vger.kernel.org>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
sdf@fomichev.me,
"moderated list:INTEL ETHERNET DRIVERS"
<intel-wired-lan@lists.osuosl.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Jiri Pirko <jiri@resnulli.us>,
Jesper Dangaard Brouer <hawk@kernel.org>,
Johannes Berg <johannes.berg@intel.com>,
Michael Chan <michael.chan@broadcom.com>,
skhawaja@google.com, Kory Maincent <kory.maincent@bootlin.com>,
Leon Romanovsky <leon@kernel.org>,
netdev@vger.kernel.org, David Ahern <dsahern@kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Tariq Toukan <tariqt@nvidia.com>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
sridhar.samudrala@intel.com, Saeed Mahameed <saeedm@nvidia.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Intel-wired-lan] [RFC net-next v4 0/9] Add support for per-NAPI config via netlink
Date: Thu, 3 Oct 2024 16:53:13 -0700 [thread overview]
Message-ID: <Zv8uaQ4WIprQCBzv@LQ3V64L9R2> (raw)
In-Reply-To: <Zv8o4eliTO60odQe@mini-arch>
On Thu, Oct 03, 2024 at 04:29:37PM -0700, Stanislav Fomichev wrote:
> On 10/01, Joe Damato wrote:
[...]
> > 2. This revision seems to work (see below for a full walk through). Is
> > this the behavior we want? Am I missing some use case or some
> > behavioral thing other folks need?
>
> The walk through looks good!
Thanks for taking a look.
> > 3. Re a previous point made by Stanislav regarding "taking over a NAPI
> > ID" when the channel count changes: mlx5 seems to call napi_disable
> > followed by netif_napi_del for the old queues and then calls
> > napi_enable for the new ones. In this RFC, the NAPI ID generation
> > is deferred to napi_enable. This means we won't end up with two of
> > the same NAPI IDs added to the hash at the same time (I am pretty
> > sure).
>
>
> [..]
>
> > Can we assume all drivers will napi_disable the old queues before
> > napi_enable the new ones? If yes, we might not need to worry about
> > a NAPI ID takeover function.
>
> With the explicit driver opt-in via netif_napi_add_config, this
> shouldn't matter? When somebody gets to converting the drivers that
> don't follow this common pattern they'll have to solve the takeover
> part :-)
That is true; that's a good point. I'll let the RFC hang out on the
list for another day or two just to give Jakub time to catch up on
his mails ;) but if you all agree... this might be ready to be
resent as a PATCH instead of an RFC.
WARNING: multiple messages have this Message-ID (diff)
From: Joe Damato <jdamato@fastly.com>
To: Stanislav Fomichev <stfomichev@gmail.com>
Cc: netdev@vger.kernel.org, mkarsten@uwaterloo.ca,
skhawaja@google.com, sdf@fomichev.me, bjorn@rivosinc.com,
amritha.nambiar@intel.com, sridhar.samudrala@intel.com,
willemdebruijn.kernel@gmail.com,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Breno Leitao <leitao@debian.org>,
Daniel Jurgens <danielj@nvidia.com>,
David Ahern <dsahern@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Donald Hunter <donald.hunter@gmail.com>,
Eric Dumazet <edumazet@google.com>,
"moderated list:INTEL ETHERNET DRIVERS"
<intel-wired-lan@lists.osuosl.org>,
Jakub Kicinski <kuba@kernel.org>,
Jesper Dangaard Brouer <hawk@kernel.org>,
Jiri Pirko <jiri@resnulli.us>,
Johannes Berg <johannes.berg@intel.com>,
Jonathan Corbet <corbet@lwn.net>,
Kory Maincent <kory.maincent@bootlin.com>,
Leon Romanovsky <leon@kernel.org>,
"open list:DOCUMENTATION" <linux-doc@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:MELLANOX MLX4 core VPI driver"
<linux-rdma@vger.kernel.org>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Michael Chan <michael.chan@broadcom.com>,
Mina Almasry <almasrymina@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Saeed Mahameed <saeedm@nvidia.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Tariq Toukan <tariqt@nvidia.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Subject: Re: [RFC net-next v4 0/9] Add support for per-NAPI config via netlink
Date: Thu, 3 Oct 2024 16:53:13 -0700 [thread overview]
Message-ID: <Zv8uaQ4WIprQCBzv@LQ3V64L9R2> (raw)
In-Reply-To: <Zv8o4eliTO60odQe@mini-arch>
On Thu, Oct 03, 2024 at 04:29:37PM -0700, Stanislav Fomichev wrote:
> On 10/01, Joe Damato wrote:
[...]
> > 2. This revision seems to work (see below for a full walk through). Is
> > this the behavior we want? Am I missing some use case or some
> > behavioral thing other folks need?
>
> The walk through looks good!
Thanks for taking a look.
> > 3. Re a previous point made by Stanislav regarding "taking over a NAPI
> > ID" when the channel count changes: mlx5 seems to call napi_disable
> > followed by netif_napi_del for the old queues and then calls
> > napi_enable for the new ones. In this RFC, the NAPI ID generation
> > is deferred to napi_enable. This means we won't end up with two of
> > the same NAPI IDs added to the hash at the same time (I am pretty
> > sure).
>
>
> [..]
>
> > Can we assume all drivers will napi_disable the old queues before
> > napi_enable the new ones? If yes, we might not need to worry about
> > a NAPI ID takeover function.
>
> With the explicit driver opt-in via netif_napi_add_config, this
> shouldn't matter? When somebody gets to converting the drivers that
> don't follow this common pattern they'll have to solve the takeover
> part :-)
That is true; that's a good point. I'll let the RFC hang out on the
list for another day or two just to give Jakub time to catch up on
his mails ;) but if you all agree... this might be ready to be
resent as a PATCH instead of an RFC.
next prev parent reply other threads:[~2024-10-03 23:53 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 23:52 [Intel-wired-lan] [RFC net-next v4 0/9] Add support for per-NAPI config via netlink Joe Damato
2024-10-01 23:52 ` Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 1/9] net: napi: Make napi_defer_hard_irqs per-NAPI Joe Damato
2024-10-08 22:08 ` Jakub Kicinski
2024-10-01 23:52 ` [RFC net-next v4 2/9] netdev-genl: Dump napi_defer_hard_irqs Joe Damato
2024-10-01 23:52 ` [Intel-wired-lan] [RFC net-next v4 3/9] net: napi: Make gro_flush_timeout per-NAPI Joe Damato
2024-10-01 23:52 ` Joe Damato
2024-10-08 18:22 ` [Intel-wired-lan] " Joe Damato
2024-10-08 18:22 ` Joe Damato
2024-10-08 22:10 ` [Intel-wired-lan] " Jakub Kicinski
2024-10-08 22:10 ` Jakub Kicinski
2024-10-01 23:52 ` [RFC net-next v4 4/9] netdev-genl: Dump gro_flush_timeout Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 5/9] net: napi: Add napi_config Joe Damato
2024-10-05 6:33 ` kernel test robot
2024-10-05 9:50 ` kernel test robot
2024-10-08 18:19 ` Joe Damato
2024-10-08 22:17 ` Jakub Kicinski
2024-10-08 22:28 ` Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 6/9] netdev-genl: Support setting per-NAPI config values Joe Damato
2024-10-08 18:20 ` Joe Damato
2024-10-08 22:19 ` Jakub Kicinski
2024-10-08 23:00 ` Joe Damato
2024-10-08 23:19 ` Jakub Kicinski
2024-10-08 23:57 ` Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 7/9] bnxt: Add support for persistent NAPI config Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 8/9] mlx5: " Joe Damato
2024-10-01 23:52 ` [RFC net-next v4 9/9] mlx4: Add support for persistent NAPI config to RX CQs Joe Damato
2024-10-03 23:29 ` [Intel-wired-lan] [RFC net-next v4 0/9] Add support for per-NAPI config via netlink Stanislav Fomichev
2024-10-03 23:29 ` Stanislav Fomichev
2024-10-03 23:53 ` Joe Damato [this message]
2024-10-03 23:53 ` Joe Damato
2024-10-04 2:33 ` [Intel-wired-lan] " Joe Damato
2024-10-04 2:33 ` Joe Damato
2024-10-04 16:22 ` [Intel-wired-lan] " Stanislav Fomichev
2024-10-04 16:22 ` Stanislav Fomichev
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=Zv8uaQ4WIprQCBzv@LQ3V64L9R2 \
--to=jdamato@fastly.com \
--cc=aleksander.lobakin@intel.com \
--cc=almasrymina@google.com \
--cc=amritha.nambiar@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=bigeasy@linutronix.de \
--cc=bjorn@rivosinc.com \
--cc=corbet@lwn.net \
--cc=danielj@nvidia.com \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jiri@resnulli.us \
--cc=johannes.berg@intel.com \
--cc=kory.maincent@bootlin.com \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=leon@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=michael.chan@broadcom.com \
--cc=mkarsten@uwaterloo.ca \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=saeedm@nvidia.com \
--cc=sdf@fomichev.me \
--cc=skhawaja@google.com \
--cc=sridhar.samudrala@intel.com \
--cc=stfomichev@gmail.com \
--cc=tariqt@nvidia.com \
--cc=willemdebruijn.kernel@gmail.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 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.