From: Jakub Kicinski <kuba@kernel.org>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Cc: <netdev@vger.kernel.org>, <bpf@vger.kernel.org>,
<magnus.karlsson@intel.com>, <stfomichev@gmail.com>,
<pabeni@redhat.com>, <tushar.vyavahare@intel.com>,
<kerneljasonxing@gmail.com>, <bjorn@kernel.org>
Subject: Re: [PATCH v4 net-next 09/15] selftests: xsk: run one test case per xskxceiver invocation
Date: Thu, 22 Oct 2026 18:24:46 -0700 [thread overview]
Message-ID: <20261022182446.64516c7f@kernel.org> (raw)
In-Reply-To: <atovTlRGERDYjB4q@boxer>
On Thu, 22 Oct 2026 17:44:14 +0200 Maciej Fijalkowski wrote:
> > Really not loving the amount of "library" code added here.
> > Do you need this just to run it over veth in net/ and over
> > real HW in drivers/net/ ? Are the test cases very different?
>
> Now that you bring this up, would be good to clarify expectations of this
> work. The lib input is what veth and hw runners share to avoid code
> repetition. The separation comes from a fact that we still want to cover
> SKB and DRV modes (via veth at net/test_xsk.py) and ZC mode is covered by
> drivers/net/hw/xsk.py.
>
> My assumption was that would not hurt much to carry common code within lib
> file. I might have been wrong tho.
We should try to avoid pushing things into lib whenever possible.
> > I wonder if we could solve this by parameterizing the env
> > class to use veth instead of netdevsim and then have unified tests?
>
> Tell me more regarding the unified tests. Is that okay'ish to run
> veth-based tests from drivers/net/hw ? I thought it was not and I shared
> my insights on similar work which does the same kind of migration
> (xdp_features bpf->drivers/net/hw) and it seemed to be heavily veth
> dedicated - the bpf sh runner was basically veth based, but so does the
> xskxceiver and I moved away from this after Bjorn's input (turned out to
> be a good thing).
The other way around. We can add mixed HW and non-HW tests in
drivers/net When run against non-HW we need to be careful to XFail
instead of failing or Skipping, so that SW CI "is green".
> each runner can have single ksft_run() call, right? So, do you think
> separate files for veth and hw runners is still okay?
SW and HW testing are done by separate executors. We'd have some
trouble (read: we'd need extra wrapping) if we we needed multiple
envs for SW testing, but SW vs HW is easy. Executor will either
run with no env exports and get the SW test, or it will be exporting
$NETIF etc and test will run against $NETIF.
> In veth runner I don't even instantiate NetDrvEpEnv as I have veth pair
> being created 'manually', however having a param similar to existing
> netdevsim one would be nice and xdp-features set could benefit from that
> as well.
Yup!
next prev parent reply other threads:[~2026-10-23 1:24 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 17:43 [PATCH v4 net-next 00/15] selftests: net: migrate AF_XDP test suite over to net Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 01/15] selftests: xsk: factor endpoint work out of pthread wrappers Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 02/15] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 03/15] selftests: xsk: drop the single-interface loopback mode Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 04/15] selftests/bpf: drop the test_progs AF_XDP wrapper Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 05/15] selftests: net: add a generic rule for BPF skeletons Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 06/15] selftests: xsk: move the AF_XDP test suite to selftests/net Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-21 21:55 ` Jakub Kicinski
2026-10-16 17:43 ` [PATCH v4 net-next 07/15] selftests: xsk: collect interface capabilities in struct xsk_caps Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 08/15] selftests: xsk: split xskxceiver main() into setup, run and cleanup Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 09/15] selftests: xsk: run one test case per xskxceiver invocation Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-21 22:01 ` Jakub Kicinski
2026-10-22 15:44 ` Maciej Fijalkowski
2026-10-23 1:24 ` Jakub Kicinski [this message]
2026-10-16 17:43 ` [PATCH v4 net-next 10/15] selftests: xsk: run the RX and TX endpoints in separate processes Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 11/15] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-21 11:30 ` Maciej Fijalkowski
2026-10-16 17:43 ` [PATCH v4 net-next 12/15] selftests: xsk: prepare xskxceiver for endpoints on two hosts Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 13/15] selftests: xsk: list the hardware test cases Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 14/15] selftests: drv-net: test AF_XDP zero-copy with an SKB peer Maciej Fijalkowski
2026-10-20 19:30 ` netdev-bot+sashiko
2026-10-16 17:43 ` [PATCH v4 net-next 15/15] selftests: xsk: document generic and hardware endpoint runs Maciej Fijalkowski
2026-10-18 19:20 ` [PATCH v4 net-next 00/15] selftests: net: migrate AF_XDP test suite over to net Björn Töpel
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=20261022182446.64516c7f@kernel.org \
--to=kuba@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=kerneljasonxing@gmail.com \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stfomichev@gmail.com \
--cc=tushar.vyavahare@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox