From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
netdev@vger.kernel.org
Cc: magnus.karlsson@intel.com, stfomichev@gmail.com, kuba@kernel.org,
pabeni@redhat.com, tushar.vyavahare@intel.com,
kerneljasonxing@gmail.com, bjorn@kernel.org,
Stanislav Fomichev <sdf@fomichev.me>
Subject: Re: [PATCH v2 net-next 3/4] selftests: xsk: move the AF_XDP test suite to selftests/net
Date: Sat, 14 Nov 2026 17:35:37 +0100 [thread overview]
Message-ID: <60bd468f-e973-44f3-b6b0-c799cc859080@bootlin.com> (raw)
In-Reply-To: <20261109193048.1006986-4-maciej.fijalkowski@intel.com>
Hi,
On 11/9/26 20:30, Maciej Fijalkowski wrote:
> Move the xskxceiver engine, the AF_XDP userspace library, the test
> definitions and the XDP program to net/lib/xsk, and test_xsk.sh with
> xsk_prereqs.sh to selftests/net.
>
> net/lib builds the XDP program and its skeleton with the bpf.mk rules,
> and skips xskxceiver with a warning when bpftool does not work, in
> which case test_xsk.sh skips too. List test_xsk.sh in
> TEST_PROGS_EXTENDED, so that it is installed but NIPA does not run it
> yet: it runs every case, flaky ones included.
>
> xskxceiver builds against the uapi headers from make headers, whose
> linux/netlink.h does not pull in linux/kernel.h, so include it for
> min_t() directly. Put tools/include ahead of CFLAGS, so that in O=
> builds a stale usr/include in the source tree does not shadow its
> linux/kernel.h and linux/types.h. Move the ethtool ring helpers from
> network_helpers into xsk.c, and cast to void * in the bound check of
> the XDP program, as bpf.mk does not build with
> -Wno-compare-distinct-pointer-types.
>
> xdp_hw_metadata and the xdp_metadata test keep using xsk.c from
> net/lib/xsk: selftests/bpf builds xsk.o from there in place of the
> find_bit.o rule, which only test_xsk.c needed. Update MAINTAINERS.
>
> Reviewed-by: Björn Töpel <bjorn@kernel.org>
> Acked-by: Stanislav Fomichev <sdf@fomichev.me>
> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
This patch fails to cross-compile when using RiscV as a target, cf
the output in :
https://netdevci.bootlin.com/stmmac/outputs/905943-bootlin-stmmac-motorcomm/build
I'm not quite sure this is an infra problem on my end, any chance you can
look this up ?
looks like it fails to include <asm/fence.h>
Maxime
next prev parent reply other threads:[~2026-11-14 16:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 19:30 [PATCH v2 net-next 0/4] selftests: move the AF_XDP test suite from bpf to net Maciej Fijalkowski
2026-11-09 19:30 ` [PATCH v2 net-next 1/4] selftests/bpf: drop the test_progs AF_XDP wrapper Maciej Fijalkowski
2026-11-09 19:30 ` [PATCH v2 net-next 2/4] selftests: net: add a generic rule for BPF skeletons Maciej Fijalkowski
2026-11-09 19:30 ` [PATCH v2 net-next 3/4] selftests: xsk: move the AF_XDP test suite to selftests/net Maciej Fijalkowski
2026-11-14 16:35 ` Maxime Chevallier [this message]
2026-11-09 19:30 ` [PATCH v2 net-next 4/4] selftests: net: move xdp_hw_metadata from selftests/bpf Maciej Fijalkowski
2026-11-11 23:57 ` [PATCH v2 net-next 0/4] selftests: move the AF_XDP test suite from bpf to net Jakub Kicinski
2026-11-12 0:23 ` Alexei Starovoitov
2026-11-14 2:47 ` Alexei Starovoitov
2026-11-13 16:23 ` Maciej Fijalkowski
2026-11-14 0:40 ` patchwork-bot+netdevbpf
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=60bd468f-e973-44f3-b6b0-c799cc859080@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--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=sdf@fomichev.me \
--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