Netdev List
 help / color / mirror / Atom feed
From: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
To: "Björn Töpel" <bjorn@kernel.org>
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>,
	<matttbe@kernel.org>, <willemb@google.com>
Subject: Re: [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net
Date: Thu, 3 Dec 2026 14:23:21 +0100	[thread overview]
Message-ID: <axFtSWtrDbAY4ras@boxer> (raw)
In-Reply-To: <87v75a1q9k.fsf@all.your.base.are.belong.to.us>

On Thu, Dec 03, 2026 at 01:51:19PM +0100, Björn Töpel wrote:
> Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:
> 
> > [0] moved the AF_XDP test suite from selftests/bpf to selftests/net.
> > This series hooks it up to drv-net, so that it runs over veth in SW CI
> > and on a NIC in HW CI; so far our HW runs have been manual. We keep the
> > existing xskxceiver cases rather than start from scratch.
> >
> > xskxceiver ran the RX and TX sides of a case as two threads of one
> > process. drv-net needs a process per side, so each endpoint becomes a
> > process of its own, and the two talk over xsk_peer, a small TCP control
> > channel: READY separates the steps, PROGRESS paces TX by what RX has
> > consumed, ABORT stops the peer after a failure, and SKIP makes the peer
> > skip a case that its endpoint skips.
> >
> > drivers/net/xsk.py runs each case between a local and a remote
> > endpoint. The remote one is always an SKB-mode xskxceiver, so the remote
> > needs no zero-copy support, and both ends share the packet generation
> > and validation of the cases.
> > - Without NETIF, they run over a veth pair, the remote end in a
> >   namespace, with the local endpoint receiving in SKB and DRV mode
> >   (skb_<case> and drv_<case> variants).
> > - With NETIF, the local endpoint runs in zero-copy mode once per role
> >   that xskxceiver -l lists for the case (rx_<case> and tx_<case>), e.g.
> >   rx_SEND_RECEIVE tests ice_clean_rx_irq_zc() and tx_SEND_RECEIVE
> >   ice_xmit_zc(). ntuple rules steer the test flow to the AF_XDP queue.
> > Every case also runs with the local endpoint busy polling. The single
> > interface (loopback) mode is removed.
> >
> > Over veth, the cases that cannot pass are expected failures without
> > being run: XDP_ADJUST_TAIL_SHRINK_MULTI_BUFF and the XDP_ADJUST_TAIL_GROW
> > cases, which hit veth and generic XDP limits, and
> > HW_SW_{MIN,MAX}_RING_SIZE, as veth has no rings. We can keep them, drop
> > them or run them on HW only. The UNALIGNED cases are expected failures
> > without huge pages.
> >
> > Patch 1 fixes a stack overrun, 2-4 prepare the split, 5-8 make the
> > endpoints separate processes and remove test_xsk.sh, 9-12 adapt the
> > endpoints to two hosts and list the roles of each case, 13-14 prepare
> > NetDrvEpEnv for veth, and 15 adds xsk.py.
> >
> > Known issues:
> > - On ice, the RSS reset over netlink fails without [1], which NIPA
> >   already carries.
> > - BIDIRECTIONAL, STAT_RX_DROPPED and TX_QUEUE_CONSUMER do not run on
> >   HW. I think BIDIRECTIONAL can go, as the rx_ and tx_ variants cover
> >   both directions.
> 
> This passed the NIPA run, right? It would be nice to get it run AF_XDP,

Yes and no ;) SW pass because it runs, HW runs were skipped.

HW runners are skipping this because of lacking bpftool. Matthieu, are you
in power of installing it on hwksft build node, the way liburing is there
for iou-zcrx? Only the build node needs it, to generate the xskxceiver
skeleton. clang is already there, nk_forward.bpf.o builds.

v6 made it into five net-next-hw branches (2026-11-29--16-00 to
2026-12-01--00-00), and in each of them, on all eight hwksft executors
(E810C, X710, CX7, BCM57508 and their -dbg variants), it died before the
first case:

  FileNotFoundError: [Errno 2] No such file or directory: '/srv/hw-worker/tests/6165/net/lib/xskxceiver'

The build node has no working bpftool, so net/lib skips xskxceiver.
The ksft-build log of the same run says:

  Makefile:14: excluding xskxceiver, bpftool not installed or not working

https://netdev.bots.linux.dev/logs/hwksft/E810-C/results/933767/test-outputs/18-xsk-py/stdout
https://netdev.bots.linux.dev/logs/hwksft/E810-C/results/933767/ksft-build

None of this shows on the contest page, since new tests on HW are
autoignored until they pass; I found it in the raw logs. The VM
builders do have bpftool, and xsk.py passes on vmksft-net-drv and
vmksft-net-drv-dbg.

We don't build bpftool from source like selftests/bpf, hid and
sched_ext do. net/bpf.mk, net/Makefile and exec/Makefile take it from
PATH, and a bpftool build that breaks takes the whole target down
instead of dropping one binary. 0-day shows that with hid's copy [0]:

  make[1]: *** [Makefile:117: tools/testing/selftests/hid/tools/sbin/bpftool] Error 2

The warning Jakub wanted to keep [1] is what pointed me at this.

  [0] https://lore.kernel.org/r/202611140904.io658Rze-lkp@intel.com/
  [1] https://lore.kernel.org/netdev/20261120180307.363312fd@kernel.org/


> so we can start adding all the missing testcases! ;-) Are there any big

Right, I already had to let people know few times that there is a pending
refactor of xsk tests runner. SW side looks stable now, if HW tests will
not cause major issues then maybe it would worth considering letting this
in so people are unblocked with these additions of missing test cases.
Jakub could nitpick on python style once he is back :P

> blockers on this version? Or is it good enough so we can start iterating
> on the tests?
> 
> FWIW, for the two patches, and the series:
> 
> Reviewed-by: Björn Töpel <bjorn@kernel.org>

Thanks for being persistent :P and Matthieu let us know what are your
thoughts here.

Maciej

> 
> 
> 

      reply	other threads:[~2026-12-03 13:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:05 [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 01/15] selftests: xsk: fix the stack overrun in is_adjust_tail_supported() Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 02/15] selftests: xsk: factor endpoint work out of pthread wrappers Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 03/15] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 04/15] selftests: xsk: drop the single-interface loopback mode Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 05/15] selftests: xsk: collect interface capabilities in struct xsk_caps Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 06/15] selftests: xsk: split xskxceiver main() into setup, run and cleanup Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-27 15:05 ` [PATCH v6 net-next 07/15] selftests: xsk: run one test case per xskxceiver invocation Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 08/15] selftests: xsk: run the RX and TX endpoints in separate processes Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 09/15] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-27 15:05 ` [PATCH v6 net-next 10/15] selftests: xsk: prepare xskxceiver for endpoints on two hosts Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-27 15:05 ` [PATCH v6 net-next 11/15] selftests: xsk: wait up to --timeout for the RX stats and a busy bind Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 12/15] selftests: xsk: list the endpoint roles of the test cases Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 13/15] selftests: drv-net: rename nsim_test to sw_test Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 14/15] selftests: drv-net: decouple local link setup from netdevsim Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 15/15] selftests: drv-net: run the AF_XDP tests over veth or a NIC Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-30 19:32     ` Maciej Fijalkowski
2026-12-03 12:51 ` [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net Björn Töpel
2026-12-03 13:23   ` Maciej Fijalkowski [this message]

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=axFtSWtrDbAY4ras@boxer \
    --to=maciej.fijalkowski@intel.com \
    --cc=bjorn@kernel.org \
    --cc=kerneljasonxing@gmail.com \
    --cc=kuba@kernel.org \
    --cc=magnus.karlsson@intel.com \
    --cc=matttbe@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stfomichev@gmail.com \
    --cc=tushar.vyavahare@intel.com \
    --cc=willemb@google.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