๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4252

Re: [PATCH v3 net-next 15/15] selftests: xsk: document generic and hardware endpoint runs

#4252
From: netdev-bot+sashiko
Date: Sat, 17 Oct 2026 03:06
82 lines
8461 bytes
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] The new README tells users to build the engine with a plain `make
  -C tools/testing/selftests/net/lib`.

--

selftests: xsk: document generic and hardware endpoint runs

This commit adds a README.rst for the AF_XDP engine in net/lib/xsk. It
covers the per-case veth runner (test_xsk.py) and the two-host hardware
runner (drivers/net/hw/xsk.py), with a zero-copy DUT and an SKB-mode
remote. It also points the xskxceiver.c header comment to the new README.

> diff --git a/tools/testing/selftests/net/lib/xsk/README.rst b/tools/testing/selftests/net/lib/xsk/README.rst
> new file mode 100644
> index 000000000000..2bbd11711cee
> --- /dev/null
> +++ b/tools/testing/selftests/net/lib/xsk/README.rst

[ ... ]

> +Setup
> +-----
> +
> +Build the engine on the DUT::
> +
> +  make -C tools/testing/selftests/net/lib
> +

[Severity: Low]
Does the README need to say that this command only builds xskxceiver
when a working bpftool is on PATH?

tools/testing/selftests/net/lib/Makefile only adds xskxceiver to
TEST_GEN_FILES conditionally:

  # xskxceiver needs a working bpftool to generate its skeleton
  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

If bpftool is missing, make prints that warning and finishes without
the binary. The skeleton rule in net/bpf.mk also needs clang with a BPF
target, plus $(BPFTOOL) gen skeleton.

With no binary, both test_xsk.py and drivers/net/hw/xsk.py print
"1..0 # SKIP ... was not built" and skip the whole run.

The same build command appears in the generic veth section. The opening
line also says the engine "is built as net/lib/xskxceiver" without that
condition.

The prerequisites paragraph further down lists AF_XDP in SKB mode, BPF
and timeout(1) for the remote, and RSS and ntuple for the DUT. Could it
also list bpftool and clang as build-time requirements on the DUT?

> +A top-level selftests build with ``TARGETS=drivers/net/hw`` includes
> +``net/lib`` as well.

[ ... ]

> +The remote host needs AF_XDP in SKB mode, BPF and ``timeout(1)``. In a
> +namespace, the remote endpoint runs the DUT's ``xskxceiver`` binary. With
> +SSH, ``xsk.py`` copies that binary to the remote, so both hosts must have
> +compatible architectures and libraries. The DUT needs RSS support, and
> +both hosts need ntuple support. The test uses ``NetDrvEpEnv`` and the
> +networking selftest Python helpers for setup and rollback.

[ ... ]

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261014184539.774708-1-maciej.fijalkowski%40intel.com
Technical Details
Message-ID: <179220637280.434549.17272583874427101673@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347659-linux-kernel-netdev=dewy.ru
References: <20261014184539.774708-16-maciej.fijalkowski@intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347659-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 net-next 15/15] selftests: xsk: document generic and
 hardware endpoint runs
Date: Sat, 17 Oct 2026 03:06:12 +0000
Organization: Usenet Network
Message-ID: <179220637280.434549.17272583874427101673@kernel.org>
References: <20261014184539.774708-16-maciej.fijalkowski@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2953803"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/YA33psXYuYkblalfF/4F0AL+Bc= sha256:EKR4nWyL6JM7/yuxo25WW6ybxvYwD4KRynYKvEexBvk=
	sha1:CAVPe5qdwLFCkxSIU2Q1Z/Z1c0E= sha256:qJu3EJVxMLvDq2ugBZ19mvGVQHD+V0ykD3tpjtXxrq8=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id CC6D511067F; Sat, 17 Oct 2026 06:11:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.639
X-Spam-Status: No, score=-3.639 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id StGWNgN3zedW;
	Sat, 17 Oct 2026 06:11:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347659-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E313311066C; Sat, 17 Oct 2026 06:11:22 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 5E1113C54D; Sat, 17 Oct 2026 03:06:18 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E93E13AA9CA;
	Sat, 17 Oct 2026 03:06:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O9UJNdxm"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C59D73B4EAB;
	Sat, 17 Oct 2026 03:06:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792206374; cv=none; b=C198w7zR1yt56x+d5YzzhrwYjPcvLDgXKE3Jt/GbkGKdQ9Zm3A77VtLXPj5TJhV2E5260RUI6NJQVtfdjv+iZjt9QYRoKYZzXhmOku08d9kd5FNMLHpNQoRtxv4D5bxsIFAobMXuyZQrnUtvTXCCW9jjczh25PioWMBaIF1hm3s=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792206374; c=relaxed/simple;
	bh=hmUlaEToS4X/xMPVcwVUUI5HypLjBS4C3XQ95uTikZ0=;
	h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References:
	 Content-Type:MIME-Version; b=p/ikKWCMv6KHOoMPBw+RBSvnsLzQSE3gf1gR/iE77PXSLxnPG2YfGtVEt2nmPC8cN9QnMRHhQA4oTYkrAXuWJcSO7JIshy32TxTEFLu0PF8HEDkRQ7obNFAeQz/Y1/4tdKVCo+gy6JcJi9UbDG1x3UbiVmatgfds37yEL/h6lKk=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O9UJNdxm; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 377DE1F000C4;
	Sat, 17 Oct 2026 03:06:13 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792206373;
	bh=m6hTExQZOxzKhFq8KNvZvjiXLqIeXz7nSivZVa8007E=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=O9UJNdxmo3mGIdse0KNrp6Igu3w2spPCtCqmSHIYZ5Nrn7Dbe51TMmp6RTR9zCygr
	 1e0h+c6plrJGvbyEj03SCXz87BCpw1E7n9L2JfEVWeOQ4RTQ9OOZahGJhAftj6/dUf
	 04fhVmea/G2ntvgM0vihh1izTSc37M8I7Md57LwQ4JjiyhAeSZRxZ+MvpdRWgaUSk7
	 yvN3VoA7q/S2OlOv6MY1kYFpiIdAcmkGQEoTkzTkcdrwS6ADCS9iczlTI0SQGDu62N
	 Hc/5TR+by+8laow7F75tDW9CW9xLto1TZtyWhQKn9Fem96tHtCqWegQxshIq1tQL3I
	 c8Xw9rJ2ZoKGA==
X-Cc: netdev@vger.kernel.org, bpf@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
X-In-Reply-To: <20261014184539.774708-16-maciej.fijalkowski@intel.com>
X-sashiko-severity: Low
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>