Article View: linux.kernel.netdev
Article #21249Re: [PATCH v5 net-next 06/13] selftests: xsk: run one test case per xskxceiver invocation
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 18:46
Date: Mon, 23 Nov 2026 18:46
76 lines
11184 bytes
11184 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] At this commit, test_xsk.sh and xsk_prereqs.sh are deleted, and
the xskxceiver.c header and the lib/Makefile XSK_SRCS comment point atβ¦
--
selftests: xsk: run one test case per xskxceiver invocation
This commit changes xskxceiver to run exactly one test case in one mode
per invocation. It now requires -m and -t, and it skips unsupported modes
instead of exiting with XFAIL. It also removes test_xsk.sh and
xsk_prereqs.sh, and points the comments at drivers/net/xsk.py, which a
later patch in the series adds.
> diff --git a/tools/testing/selftests/net/lib/Makefile b/tools/testing/selftests/net/lib/Makefile
> index 0a6cd733883d1..84e3d220d5aa2 100644
> --- a/tools/testing/selftests/net/lib/Makefile
> +++ b/tools/testing/selftests/net/lib/Makefile
> @@ -35,7 +35,7 @@ include ../../lib.mk
> BPF_PROG_DIRS := xsk
> include ../bpf.mk
>
> -# AF_XDP test engine used by net/test_xsk.sh.
> +# AF_XDP test engine used by drivers/net/xsk.py.
> XSK_SRCS := $(filter-out %.bpf.c,$(wildcard xsk/*.c)) \
> $(top_srcdir)/tools/lib/find_bit.c
>
> diff --git a/tools/testing/selftests/net/lib/xsk/xskxceiver.c b/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> index 97eece4c57f89..b72e9332bf705 100644
> --- a/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> +++ b/tools/testing/selftests/net/lib/xsk/xskxceiver.c
> @@ -6,7 +6,7 @@
> * Linux kernel samples/bpf/xdpsock* and modified
> * for use.
> *
> - * See test_xsk.sh for detailed information on test topology
> + * See drivers/net/xsk.py for detailed information on test topology
> * and prerequisite network setup.
[Severity: Low]
At this commit, tools/testing/selftests/drivers/net/xsk.py does not exist
yet. That means this header comment and the XSK_SRCS comment in
lib/Makefile both name a file that is not in the tree.
With test_xsk.sh and xsk_prereqs.sh removed, nothing in the tree creates
the veth pair or applies the busy-poll tuning that setup_vethPairs() did
in the deleted test_xsk.sh:
ip link add ${VETH0} numtxqueues 4 numrxqueues 4 type veth peer name ${VETH1} numtxqueues 4 numrxqueues 4
...
echo 2 > /sys/class/net/${VETH0}/napi_defer_hard_irqs
echo 200000 > /sys/class/net/${VETH0}/gro_flush_timeout
Is it intended that checking out or bisecting to this commit leaves no
in-tree way to run the AF_XDP cases?
The commit message says that test_xsk.sh was in TEST_PROGS_EXTENDED, so
the default run_tests loses no test. A later patch in the series,
"selftests: drv-net: run the AF_XDP tests over veth or a NIC", adds
drivers/net/xsk.py. That runner sets up the veth pair through
NetDrvEpEnv(veth_test=True) and repeats the busy-poll tuning in
_setup_busy_poll(). The old IPv6 disable step is no longer needed,
because the programs in xsk_xdp_progs.bpf.c redirect only test packets and
return XDP_PASS for everything else.
Could the comments here say that drivers/net/xsk.py is added later in the
series, or could the new runner land before the old script is removed?
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261119164636.1071385-1-maciej.fijalkowski%40intel.com
Technical Details
Message-ID:
<179545959547.3135.15027004543719425053@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369697-linux-kernel-netdev=dewy.ruReferences:
<20261119164636.1071385-7-maciej.fijalkowski@intel.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369697-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v5 net-next 06/13] selftests: xsk: run one test case per xskxceiver invocation Date: Mon, 23 Nov 2026 18:46:35 +0000 Organization: Usenet Network Message-ID: <179545959547.3135.15027004543719425053@kernel.org> References: <20261119164636.1071385-7-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="3957815"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/nAOsTuaA31nyhzBpxSYY1DkKMM= sha256:rZc+TldFi6L8DjkecMpqIzNKhAuTzb6Kxi0qcX+4HvY= sha1:oXWDGlFuUE4afwIrxbGpUYG+KJM= sha256:IZ4Z7VD9W7Rw81r2c23DhbfvgOs306nvQiFOHvc/DDM= 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 0C0E2125DC5; Mon, 23 Nov 2026 21:47:01 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 lEnEs-PCkNmq; Mon, 23 Nov 2026 21:46:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369697-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 EB22F125DC6; Mon, 23 Nov 2026 21:46:46 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E63C631B36; Mon, 23 Nov 2026 18:46:37 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795459597; b=A7hHTcRV2r/kKo+TaTCUCcro/TQXg56HLneASnGxAetmE0x8SBBvwJgmCksylH5809i0 LS+lOkoF5UPw366FmPGtXxrx8vQqIyuat2RIDkikONcIJsbO1a0gBL/8bHcIM6bwXt9ws /9ofpg1UVcuqBEMDxXQGbEUqgWmZEbrkkoWyzE86XHJu8Ye8mPPHQwbA6S4OonHNlYjuU OYpc/Uv8hi/RY7Jd+RL/0H6St+cjdabdKaOTJ7cPILD/YAtPkbxFnOd3LZaBSTtFMU1tk MCvBcbVDg8afzM8TOCaUucEHYDYFx4IdorUcq8Rklpjgb0fu8iR3t9hN9ZKek5d93QQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795459597; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=000l8wx5L/kXs85hi530hSpUh858866LKA6/wEQ6zqk=; b=K+kO7GSZqKVwdPdAj6+T4z2c21DTfzwmSeZWR9+RkgLOq/TykM0Uzj6Z+3XqsJETWjW7 W53Kf2poYyNi2qmJjwEezgq2+WrIhdsiWnS58P5Vq0pz+MNVJ0QNFBsj90ST7QKHelCoO JJr07cQjyj+mZGVvAhEpFbLpyZjUd194N2zPgnYixeYR6bzmuG+lhKKFH6mWmTqNOjNvG pa+seTUkb8qq2cQkYOd1Dfa1lYCcKEZWSRFD3IE149sMzDNsl1VXu8TqB3tW0LqQicdzB MtUxbBdNimcgF0dC6zYC1Mp9iwtTQy0GdqpXgdtBdjOU5Az1+1628thu9a4f/zW9ABg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eG+lDG+O; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D75D606A327; Mon, 23 Nov 2026 18:46:37 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eG+lDG+O X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795459596; b=ELeYZsUG599vC48IoGp7MofWgnk+Y7QoRYLRnbY10VbLGb6YDCH2Z9siORjNwKN9xkbd U1oAnnH+69d7vH/Lu5/i9jOOQS77Wgp/lYOFxxUeW141H0Nv+cvPnF6mBcZQTj1Y87hc2 fmMVMfPeoVQG4hQSdRwWuMQ+TpfLEYYtlFahPM6Nl80724rxL3UUhIb4TrV4jgDGZ9cjc PzUpr6Cboooew00CjBf+KSLdCBnmsrg4iGdkZFXzsksvajSRg92lBuvesGtRrKYIihDDO Gdsfq4yclqoR/ON+K1dPS40WHEG4L5iOEzWPJNP+yfHBKxcscNuPtUclMt0gH/NjYmg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795459596; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=000l8wx5L/kXs85hi530hSpUh858866LKA6/wEQ6zqk=; b=ku1uYC0/YHDDi3NwRzYDoxzUdr0xGA567l+B8booWD0kOiMHwNKmV9KhPsNfp/ZpYZWZ pUEHJS3dIZvnEw2IqRnRyVpMbsACLBGczlIlnZgixqnvYG7cXqFsWcK72N957v3a/KF07 uTDrmtlvu/nnGVhjK68gP3oKcmHtbvQvlaWMMkP1Z7l3AU3JOflt2J/2pmqYkxNXK4xcW T+hHOKAk94U97Js+c/Z4B5sfDpdpdSgojL6UpO752NvjLFYLhRCB4ASV3LEhfShzx5bUn 2JPVx2UpZCSFdU4wMk6ALpWpWG55GcCT3sEJtu7jdlT9aIgqGTA3rVX8iEpmUTa5VLg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eG+lDG+O; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF7E2606A32A for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 18:46:36 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDD111F000C0; Mon, 23 Nov 2026 18:46:35 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795459596; bh=000l8wx5L/kXs85hi530hSpUh858866LKA6/wEQ6zqk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=eG+lDG+OcTtIp+tbt6RbD5tZcHSgrvOFF4zH0q1y2JXMrSZcM9pbydFyLS0H1Gq2J P7orE9FqyLeYf4CfsF3z54tX0hc42OLjd/JtBORF0vuMzI4ZyUKs+IAVvd6WxyALpQ 2fTDRscvhTLy41qpos/b82vxmOdpqvfU/eCfScrib49DMMct89UhK5C0pjJpBjU57p dj2sgmOpl3GPxgKe59TmdDfgrUYsDc4d33kk8aJYCw/W4ugHpr07ehGPxDF2By/Q4J kcH8tH6fWxji34UirJ2RxGGZu8+Ha8ElFeQnSH5vaLlulRMjWrlm0IiMWa0c0vw9jq /br89nXdpalnw== X-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, bjorn@kernel.org X-In-Reply-To: <20261119164636.1071385-7-maciej.fijalkowski@intel.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list