From: Jakub Kicinski <kuba@kernel.org>
To: Amritha Nambiar <amritha.nambiar@intel.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, ast@kernel.org, sdf@google.com,
lorenzo@kernel.org, tariqt@nvidia.com, daniel@iogearbox.net,
anthony.l.nguyen@intel.com, lucien.xin@gmail.com,
hawk@kernel.org, sridhar.samudrala@intel.com
Subject: Re: [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue
Date: Tue, 9 Apr 2024 16:21:53 -0700 [thread overview]
Message-ID: <20240409162153.5ac9845c@kernel.org> (raw)
In-Reply-To: <171234737780.5075.5717254021446469741.stgit@anambiarhost.jf.intel.com>
On Fri, 05 Apr 2024 13:09:28 -0700 Amritha Nambiar wrote:
> $ ./cli.py --spec netdev.yaml --do queue-set --json='{"ifindex": 12, "id": 0, "type": 0, "napi-id": 595}'
> {'id': 0, 'ifindex': 12, 'napi-id': 595, 'type': 'rx'}
NAPI ID is not stable. What happens if you set the ID, bring the
device down and up again? I think we need to make NAPI IDs stable.
What happens if you change the channel count? Do we lose the config?
We try never to lose explicit user config. I think for simplicity
we should store the config in the core / common code.
How does the user know whether queue <> NAPI association is based
on driver defaults or explicit configuration? I think I mentioned
this in earlier discussions but the configuration may need to be
detached from the existing objects (for one thing they may not exist
at all when the device is down).
Last but not least your driver patch implements the start/stop steps
of the "queue API" I think we should pull that out into the core.
Also the tests now exist - take a look at the sample one in
tools/testing/selftests/drivers/net/stats.py
Would be great to have all future netdev family extensions accompanied
by tests which can run both on real HW and netdevsim.
next prev parent reply other threads:[~2024-04-09 23:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 20:09 [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 1/5] netdev-genl: spec: Extend netdev netlink spec in YAML for queue-set Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 2/5] netdev-genl: Add netlink framework functions for queue-set NAPI Amritha Nambiar
2024-04-06 0:20 ` David Wei
2024-04-08 19:45 ` Nambiar, Amritha
2024-04-05 20:09 ` [net-next, RFC PATCH 3/5] ice: Add support to enable/disable a vector Amritha Nambiar
2024-04-05 20:09 ` [net-next,RFC PATCH 4/5] ice: Handle unused vectors dynamically Amritha Nambiar
2024-04-05 20:09 ` [net-next, RFC PATCH 5/5] ice: Add driver support for ndo_queue_set_napi Amritha Nambiar
2024-04-09 23:21 ` Jakub Kicinski [this message]
2024-04-11 22:46 ` [net-next,RFC PATCH 0/5] Configuring NAPI instance for a queue Nambiar, Amritha
2024-04-12 1:47 ` Jakub Kicinski
2024-04-18 21:23 ` Nambiar, Amritha
2024-04-19 1:37 ` 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=20240409162153.5ac9845c@kernel.org \
--to=kuba@kernel.org \
--cc=amritha.nambiar@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=lorenzo@kernel.org \
--cc=lucien.xin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf@google.com \
--cc=sridhar.samudrala@intel.com \
--cc=tariqt@nvidia.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).