From: netdev-bot+sashiko@kernel.org
To: maciej.fijalkowski@intel.com
Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com,
stfomichev@gmail.com, kuba@kernel.org, pabeni@redhat.com,
tushar.vyavahare@intel.com, kerneljasonxing@gmail.com,
bjorn@kernel.org
Subject: Re: [PATCH v5 net-next 06/13] selftests: xsk: run one test case per xskxceiver invocation
Date: Mon, 23 Nov 2026 18:46:35 +0000 [thread overview]
Message-ID: <179545959547.3135.15027004543719425053@kernel.org> (raw)
In-Reply-To: <20261119164636.1071385-7-maciej.fijalkowski@intel.com>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] At this commit, test_xsk.sh and xsk_prereqs.sh are deleted, and
the xskxceiver.c header and the lib/Makefile XSK_SRCS comment point at…
--
selftests: xsk: run one test case per xskxceiver invocation
This commit changes xskxceiver to run exactly one test case in one mode
per invocation. It now requires -m and -t, and it skips unsupported modes
instead of exiting with XFAIL. It also removes test_xsk.sh and
xsk_prereqs.sh, and points the comments at drivers/net/xsk.py, which a
later patch in the series adds.
> diff --git a/tools/testing/selftests/net/lib/Makefile b/tools/testing/selftests/net/lib/Makefile
> index 0a6cd733883d1..84e3d220d5aa2 100644
> --- a/tools/testing/selftests/net/lib/Makefile
> +++ b/tools/testing/selftests/net/lib/Makefile
> @@ -35,7 +35,7 @@ include ../../lib.mk
> BPF_PROG_DIRS := xsk
> include ../bpf.mk
>
> -# AF_XDP test engine used by net/test_xsk.sh.
> +# AF_XDP test engine used by drivers/net/xsk.py.
> XSK_SRCS := $(filter-out %.bpf.c,$(wildcard xsk/*.c)) \
> $(top_srcdir)/tools/lib/find_bit.c
>
> diff --git a/tools/testing/selftests/net/lib/xsk/xskxceiver.c b/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> index 97eece4c57f89..b72e9332bf705 100644
> --- a/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> +++ b/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> @@ -6,7 +6,7 @@
> * Linux kernel samples/bpf/xdpsock* and modified
> * for use.
> *
> - * See test_xsk.sh for detailed information on test topology
> + * See drivers/net/xsk.py for detailed information on test topology
> * and prerequisite network setup.
[Severity: Low]
At this commit, tools/testing/selftests/drivers/net/xsk.py does not exist
yet. That means this header comment and the XSK_SRCS comment in
lib/Makefile both name a file that is not in the tree.
With test_xsk.sh and xsk_prereqs.sh removed, nothing in the tree creates
the veth pair or applies the busy-poll tuning that setup_vethPairs() did
in the deleted test_xsk.sh:
ip link add ${VETH0} numtxqueues 4 numrxqueues 4 type veth peer name ${VETH1} numtxqueues 4 numrxqueues 4
...
echo 2 > /sys/class/net/${VETH0}/napi_defer_hard_irqs
echo 200000 > /sys/class/net/${VETH0}/gro_flush_timeout
Is it intended that checking out or bisecting to this commit leaves no
in-tree way to run the AF_XDP cases?
The commit message says that test_xsk.sh was in TEST_PROGS_EXTENDED, so
the default run_tests loses no test. A later patch in the series,
"selftests: drv-net: run the AF_XDP tests over veth or a NIC", adds
drivers/net/xsk.py. That runner sets up the veth pair through
NetDrvEpEnv(veth_test=True) and repeats the busy-poll tuning in
_setup_busy_poll(). The old IPv6 disable step is no longer needed,
because the programs in xsk_xdp_progs.bpf.c redirect only test packets and
return XDP_PASS for everything else.
Could the comments here say that drivers/net/xsk.py is added later in the
series, or could the new runner land before the old script is removed?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261119164636.1071385-1-maciej.fijalkowski%40intel.com
next prev parent reply other threads:[~2026-11-23 18:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 16:46 [PATCH v5 net-next 00/13] selftests: net: adjust xskxceiver to drv-net Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 01/13] selftests: xsk: factor endpoint work out of pthread wrappers Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 02/13] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-19 16:46 ` [PATCH v5 net-next 03/13] selftests: xsk: drop the single-interface loopback mode Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 04/13] selftests: xsk: collect interface capabilities in struct xsk_caps Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 05/13] selftests: xsk: split xskxceiver main() into setup, run and cleanup Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-19 16:46 ` [PATCH v5 net-next 06/13] selftests: xsk: run one test case per xskxceiver invocation Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko [this message]
2026-11-19 16:46 ` [PATCH v5 net-next 07/13] selftests: xsk: run the RX and TX endpoints in separate processes Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-19 16:46 ` [PATCH v5 net-next 08/13] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-23 19:08 ` Björn Töpel
2026-11-19 16:46 ` [PATCH v5 net-next 09/13] selftests: xsk: prepare xskxceiver for endpoints on two hosts Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-19 16:46 ` [PATCH v5 net-next 10/13] selftests: xsk: list the endpoint roles of the test cases Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 11/13] selftests: drv-net: decouple local link setup from netdevsim Maciej Fijalkowski
2026-11-19 16:46 ` [PATCH v5 net-next 12/13] selftests: drv-net: run the AF_XDP tests over veth or a NIC Maciej Fijalkowski
2026-11-23 18:46 ` netdev-bot+sashiko
2026-11-19 16:46 ` [PATCH v5 net-next 13/13] selftests: xsk: document generic and hardware endpoint runs Maciej Fijalkowski
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=179545959547.3135.15027004543719425053@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=bjorn@kernel.org \
--cc=kerneljasonxing@gmail.com \
--cc=kuba@kernel.org \
--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