On Thu, Dec 03, 2026 at 07:19:39PM +0100, Matthieu Baerts wrote:
> Hi Maciej,
>
> On 03/12/2026 14:23, Maciej Fijalkowski wrote:
> > On Thu, Dec 03, 2026 at 01:51:19PM +0100, Björn Töpel wrote:
> >> Maciej Fijalkowski <maci…@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.
>
> Thank you, I didn't check why these tests were failing. Do you need a
> specific version, or the one from Fedora 44 repo is OK? (bpftool from
> F44 is now on the build server)
it will be sufficient, we only needs to build skeleton as mentioned above
so no fancy feature usage.
Thanks for getting back to me!
>
> > None of this shows on the contest page, since new tests on HW are
> > autoignored until they pass;
>
> Indeed, it might be a bit confusing... Once the tests are stable, I will
> look at improving this.
Awesome.
>
> Cheers,
> Matt
> --
> Sponsored by the NGI0 Core fund.
>
>