๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5663

Re: [PATCH v4 net-next 13/15] selftests: xsk: list the hardware test cases

#5663
From: netdev-bot+sashiko
Date: Tue, 20 Oct 2026 19:30
60 lines
10512 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 comment above the test tables in
  tools/testing/selftests/net/lib/xsk/test_xsk.h (lines 307-312) namesโ€ฆ

--

selftests: xsk: list the hardware test cases

This splits tests[] in test_xsk.h into hw_rx_tx_tests[], hw_rx_tests[],
hw_tx_tests[] and generic_tests[], grouped in test_groups[], and test IDs
now follow the order of those arrays. It also adds a -L option to
xskxceiver, which lists each hardware test once per role it covers.

> diff --git a/tools/testing/selftests/net/lib/xsk/test_xsk.h b/tools/testing/selftests/net/lib/xsk/test_xsk.h
> index 15534f4ec8f4b..a59b34b156d79 100644
> --- a/tools/testing/selftests/net/lib/xsk/test_xsk.h
> +++ b/tools/testing/selftests/net/lib/xsk/test_xsk.h
> @@ -304,49 +304,73 @@ int testapp_xdp_shared_umem(struct test_spec *test);
>  int worker_testapp_validate_rx(struct test_spec *test);
>  int worker_testapp_validate_tx(struct test_spec *test);
>  
> -static const struct test_spec tests[] = {
> +/* Tests by the role of the endpoint that they check. A hardware run, see
> + * xskxceiver -L, gives that role to its zero-copy endpoint. It does not do
> + * the generic tests: BIDIRECTIONAL swaps the directions, which
> + * drivers/net/hw/xsk.py sets up one at a time, and the others skip in
> + * zero-copy mode.
> + */

[Severity: Low]
This isn't a bug, but the comment above hw_rx_tx_tests[] points to
drivers/net/hw/xsk.py, and that file is not in the tree at this commit.

The only xsk script under tools/testing/selftests/drivers/net/hw/ here is
xsk_reconfig.py. Nothing reads the hw_rx/hw_tx fields of struct test_group
or the -L output yet. The in-tree runner, net/test_xsk.py, still uses -l.

The next patch in the series, "selftests: drv-net: test AF_XDP zero-copy
with an SKB peer", adds drivers/net/hw/xsk.py. Its _get_cases() runs
xskxceiver -L and parses the "ID: NAME rx|tx" lines. So the reference
is correct once the whole series is applied.

Could the comment be added in the patch that adds xsk.py instead, so it
is accurate at every point in the series?

> +static const struct test_spec hw_rx_tx_tests[] = {
>  	{.name = "SEND_RECEIVE", .test_func = testapp_send_receive},
>  	{.name = "SEND_RECEIVE_2K_FRAME", .test_func = testapp_send_receive_2k_frame},
>  	{.name = "SEND_RECEIVE_SINGLE_PKT", .test_func = testapp_single_pkt},

[ ... ]

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261016174338.787135-1-maciej.fijalkowski%40intel.com
Technical Details
Message-ID: <179252463022.3135.13583685372902273086@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-349508-linux-kernel-netdev=dewy.ru
References: <20261016174338.787135-14-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-349508-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v4 net-next 13/15] selftests: xsk: list the hardware test cases
Date: Tue, 20 Oct 2026 19:30:30 +0000
Organization: Usenet Network
Message-ID: <179252463022.3135.13583685372902273086@kernel.org>
References: <20261016174338.787135-14-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="3936834"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:k/mBDV4//+tEmmtp5eUku4SYNQE= sha256:ydNAv+iVF17NvN5wZZ0X5/BWYGRK86vklfj6Ay9O4ow=
	sha1:NlqWnwnCV0C6kXOxPhc4gplGVso= sha256:elnZn4ieB6TpHZMhDuUS49zwyJgNwWCfy2EFKrKwslE=
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 87901110E00; Tue, 20 Oct 2026 22:33:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.728
X-Spam-Status: No, score=-3.728 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 UEoH0pdle49y;
	Tue, 20 Oct 2026 22:33:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349508-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 2FC39110E02; Tue, 20 Oct 2026 22:32:57 +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 7887E30D67; Tue, 20 Oct 2026 19:30:44 +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=1792524637;
	b=G8COdX8/FivttVjrQgur9LhsshRMn92YIRChJbq/D6gUZxCY1OMRXdS6dBFoPX06lgmG
	 TltDvJH2w2k2LJSN1hCsoVqlWwqlFYGjVlsUkVzxWHBUIWJtjlOoiofeDJBxuYqmyUC2M
	 n5gmP5FJCL2gxZiFMiUQWZfL7J7DUaExQ8r2lIwn0Xnva6g+b6gccgoMFfjAGJ/3UMReZ
	 8txX7ZSO9chIVUTzh4XHSfPkk8GAdxbCbnHxY6bnscpllUF0Zpt4+1nncWuzp0mnn76Kb
	 Q69jLehhH4HPn0AfKfB0CxKfTlZcGlRCJiH3tPvAcdPLCGcGaReyfW3fC96YaM3007g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792524637;
	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=VtbXwkCIXbgyZunGhyG1HyvmWfkGMz8AqTPwweIhNfg=;
	b=bTb/SCdG3wcDHlHqL+oDpxjZi4xns0xKB9IY1ZFFZV9NLDFqtR6CjxU91RGQrDaqM0z6
	 z7rBQqKZu9N6MgYHfg1ZizjnsgnLWxym6U/1f46v6cwwupwZJv1Anw5cpKFwH3KdLZ+ya
	 DlVrTqY00PaKq5Oim2UhCo2MM7wFgQliybe8ozTOVG0ughzHQjyVRSm/OismyJTAOUZTJ
	 VrORXPUDhbKbiB8gWzmvJSlgnAbGZvs3tJ+duV0bCMMn+o6DNPSvxZrYhFpptrMKVCaW/
	 6/DsgxVlNfXRzmFSzl2tX2kCRVzYB+RxSbcOaItbTstW/2OJWDIi5FYHWVB1ECVyTUA==
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=C68CymfH;
	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 D7A1860A260D;
	Tue, 20 Oct 2026 19:30:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=C68CymfH
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=1792524632;
	b=pwHiHSsiu67MyY5xPpHb3W4xrS08nS91N1MomVTBBBqDmQOjzsuFNyVLFjmCuwakGfH6
	 UrC8ro6KeeL84w9TEXqz5g+TieObDtP5Szs3p7WeX0ossAlS7wN4oDW/FBGv5S9mzwl2W
	 1+HLfkEuddhgJYDCXpp0a5783qtp43epKSPgDDUabfmhXWkRr9G0o1s7EWIwz4AodH+xB
	 qdUE4f1NR0igckExN1RMAnSiqUSoMswLNsp9NKcLqhbAzQhjjbKNSzHrVWwACeYtPyKqE
	 EMT4XiOtocKH3eM3JieiusXITYuZxCWp4xVIDQb3uapUaXd+reiVJZDXUQszQRiLGuQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792524632;
	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=VtbXwkCIXbgyZunGhyG1HyvmWfkGMz8AqTPwweIhNfg=;
	b=Nl4IJ0L/QXFWPrMNYZ8XX4V7b0kaQhQS1nNSu1wo+cNKq7tatui6zOtWxlRaAaWr8GSa
	 HSuAKOYhU0yhUUjY3L0kFWSmcPMRk9KZDVcBOgQ6kldBlMbgeoLQ8QgAt1mZji05neLFN
	 2tW8lO/Hc4J74Tpj9mdssOQs0UE77GfqNylolb/2XXJRtxgwU8tXYkQcyLpiaMgdWyEqO
	 AaXSG78ZWp5h5zgIKRFTo+eOLi6Xoo8QhfYPwp4w6puhHizqzNo7tlhHXkccN5uNJWp6V
	 44cl7mHJ9CeFQtqvmsp8xDMrNJd+jYNDCnRYJQaRd5mzr/zGPhR3dSReblNgyFyZ7IQ==
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=C68CymfH;
	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 B62F9606A338;
	Tue, 20 Oct 2026 19:30:31 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A71791F000C9;
	Tue, 20 Oct 2026 19:30:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792524631;
	bh=VtbXwkCIXbgyZunGhyG1HyvmWfkGMz8AqTPwweIhNfg=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=C68CymfH9mOu+TN/37TzZAKejxsehcnKvn7mkibsNBQGdaIA4CA76an6Z4tDd5pzW
	 XuPQE3HbYtdL2CbFX6fSVeKxFRHvK1gvCkEDOp8o3YmPose5IPChq1Asmo9X1o+TXm
	 GUKm7u47lnyqfBqhaKwcA4S6GL36613vxegcvz3/f3uVZgTWKuzBr8M19csZ04lVTG
	 bBjoWFGhBYvwiHAo6DFcym4+gUGT10FguBZ6Dsj9XDQvgnrFJYud79n3fzoKOReZ/Y
	 r6ur+2pJJk6OgVICfSNlqZubcROJsNo1WqHiSOt4Y7lHuJ65w4FtiVjmOWyCDQCR+P
	 SZtUh3wZZvk2Q==
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: <20261016174338.787135-14-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