From: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
To: netdev@vger.kernel.org, bpf@vger.kernel.org
Cc: kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net,
pabeni@redhat.com, edumazet@kernel.org, horms@kernel.org,
davem@davemloft.net, shuah@kernel.org, hawk@kernel.org,
john.fastabend@gmail.com, sdf@fomichev.me, willemb@google.com,
petrm@nvidia.com, bjorn@kernel.org, magnus.karlsson@intel.com,
linux-kselftest@vger.kernel.org
Subject: [PATCH net-next] selftests: net: don't warn when bpftool is missing
Date: Wed, 18 Nov 2026 17:53:38 +0100 [thread overview]
Message-ID: <20261118165338.1064930-1-maciej.fijalkowski@intel.com> (raw)
xskxceiver and xdp_hw_metadata need bpftool to generate their BPF
skeletons, so they are skipped when it is missing or does not work.
The kernel test robot builds selftests without bpftool and reports the
warnings about it as new build regressions in both net-next and
bpf-next. Skipping the two tools is expected there, so drop the
warnings.
Fixes: e8f9d8237988 ("selftests: xsk: move the AF_XDP test suite to selftests/net")
Fixes: d01fb5c81130 ("selftests: net: move xdp_hw_metadata from selftests/bpf")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202611140904.io658Rze-lkp@intel.com/
Closes: https://lore.kernel.org/r/202611141124.V0t6dlFo-lkp@intel.com/
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
---
Based on the bpf-net-xsk-move tag so it can go to net-next and bpf-next
through another shared branch, as Alexei asked:
https://lore.kernel.org/netdev/CAADnVQK=Y1CY=m0gGegLB-jm9S1cUcEcKUuNx33PT2W-tdMCuw@mail.gmail.com/
tools/testing/selftests/net/Makefile | 2 --
tools/testing/selftests/net/lib/Makefile | 2 --
2 files changed, 4 deletions(-)
diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile
index 83882735229d..a7f8b2c0b763 100644
--- a/tools/testing/selftests/net/Makefile
+++ b/tools/testing/selftests/net/Makefile
@@ -231,8 +231,6 @@ BPFTOOL ?= bpftool
HAS_BPFTOOL := $(shell $(BPFTOOL) version >/dev/null 2>&1 && echo y)
ifeq ($(HAS_BPFTOOL),y)
COND_GEN_FILES += xdp_hw_metadata
-else
-$(warning excluding xdp_hw_metadata, bpftool not installed or not working)
endif
TEST_GEN_FILES += $(COND_GEN_FILES)
diff --git a/tools/testing/selftests/net/lib/Makefile b/tools/testing/selftests/net/lib/Makefile
index 0a6cd733883d..5765625ae7f7 100644
--- a/tools/testing/selftests/net/lib/Makefile
+++ b/tools/testing/selftests/net/lib/Makefile
@@ -10,8 +10,6 @@ BPFTOOL ?= bpftool
HAS_BPFTOOL := $(shell $(BPFTOOL) version >/dev/null 2>&1 && echo y)
ifeq ($(HAS_BPFTOOL),y)
COND_GEN_FILES += xskxceiver
-else
-$(warning excluding xskxceiver, bpftool not installed or not working)
endif
TEST_FILES := \
base-commit: d01fb5c8113055e3d1b7f573261ae6a30abf4e53
--
2.43.0
next reply other threads:[~2026-11-18 16:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:53 Maciej Fijalkowski [this message]
2026-11-19 1:11 ` [PATCH net-next] selftests: net: don't warn when bpftool is missing Alexei Starovoitov
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=20261118165338.1064930-1-maciej.fijalkowski@intel.com \
--to=maciej.fijalkowski@intel.com \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
--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