🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21257

Re: [PATCH v5 net-next 10/13] selftests: xsk: list the endpoint roles of the test cases

#21257
From: Björn Töpel
Date: Mon, 23 Nov 2026 19:12
23 lines
8876 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:

> On a NIC, drivers/net/xsk.py, added later in this series, runs each
> case with its zero-copy endpoint as RX, as TX or as both. A list of the
> cases by ID in that runner would repeat the test table and silently go
> stale when a case is added or moved.
>
> Split tests[] into the tests that check both endpoint roles, those that
> check the RX endpoint, those that check the TX endpoint, and the
> generic ones, which a hardware run does not do: BIDIRECTIONAL swaps the
> directions, and STAT_RX_DROPPED and TX_QUEUE_CONSUMER skip in zero-copy
> mode. The test IDs follow the order of these arrays, so they change,
> and xsk.py takes them from xskxceiver. The notes that came with
> ci_skip_tests[] go.
>
> -l now follows each test with the roles that it tests on hardware, e.g.
> "0: SEND_RECEIVE rx tx" or "9: POLL_RX rx", and a generic test with
> none, so that one list serves both a veth and a hardware run.
>
> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID: <87pkvvpdkp.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369708-linux-kernel-netdev=dewy.ru
References: <20261119164636.1071385-1-maciej.fijalkowski@intel.com> <20261119164636.1071385-11-maciej.fijalkowski@intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369708-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v5 net-next 10/13] selftests: xsk: list the endpoint
 roles of the test cases
Date: Mon, 23 Nov 2026 20:12:06 +0100
Organization: Usenet Network
Message-ID: <87pkvvpdkp.fsf@all.your.base.are.belong.to.us>
References: <20261119164636.1071385-1-maciej.fijalkowski@intel.com>
 <20261119164636.1071385-11-maciej.fijalkowski@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3962779"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LIt8TokGVNWWJv2vnlMOGQGH2D0= sha256:vAhFvmw+TrBNHcnSQ7mwwBmSp5Pg/ahSkVsAb415ziU=
	sha1:INfIJqLUBCnnqMafXvzgzv9dzi4= sha256:xxEZKg4DvvioLdKZS6mi9xT8EKq7xujLaUT/XxTpT2c=
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 0B9EB125DC5; Mon, 23 Nov 2026 22:12:25 +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 V3pAM3KesZn0;
	Mon, 23 Nov 2026 22:12:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369708-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 1582C125DC3; Mon, 23 Nov 2026 22:12:12 +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 9BA06338A3; Mon, 23 Nov 2026 19:12:11 +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=1795461130;
	b=WPthnPV565nDudjuL6/i6v3cojG3UKO3hqo2ubBVrRzqBinbScYgVxosHfxbYTnFrKaa
	 pvg0PAzhMSu39wtYB6Jg9CVp+cUEhEO5tQcF3RkY/khh/3axomxa2nuXVv+TUaFjl4oOP
	 /UMLK63fXzO3vQpopx3ZGBDly4zOWYCstoNEXko5ueOBUrVUT1dEYQQ4dXqG0Jjpng3jx
	 NXdxaUgMgh6q/bIWlNbeM1zK+OB3rQHWlaF9CgYmo6ZYfLwsLf9eRQTzhCKHim7phKkQo
	 EcAdiyeIWVYjJLCyhQx3XVthsRpbrmgzM40N3REXoHwn30fFtQ0p2UoypCEi0cEax8Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795461130;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=669cLwprKalZDSaW7X4qn1vPbEGUYgE2wL6e+ZzxvrQ=;
	b=QSxh2QgvmMVskIMrLF0ElujPJkOcItmlLhke9HDG+mWEsTcjgZhLSNOBHenV/mKGSw17
	 bXxwU1mY0RUSI7853tearvdJcLncWNFZ3kDIhkhi3WgFNqfzgQVSEAcvyHKLLEgo4JBkQ
	 Hg3aIUUS44ZCmzCZ9LrqIYvLB04WOhQSjmcyfPfi8iYOgikoTY+QIq7UFk+s6FZG1GREd
	 W4n7GlroHyU/Vz/gb5qFIv8hJ7qN8h/2uBmPOvjKnXzcP/vicorv7NXUTcUO2MZU8W041
	 UaaiYXlUcLVdpT7ACzNqjROg5sGZoaZU0l5AN2+Be4klk/4EBvQAKY3r0uDTzuuLWUQ==
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="e0f/DZkH";
	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 D7656606A32A;
	Mon, 23 Nov 2026 19:12:10 +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=e0f/DZkH
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=1795461130;
	b=UN2NlmDoPCD1ppiCg5dL8QrMWbJxhqS1XB4jDhD8h2n4QmDax+s9gmYVCU1sFI2y1Z2R
	 8aSErqCBSkRwCpYDnL0wCT5jPOczeXxdfpMHJyw3wgYSCeJEQPtS+HecEM1hf5J8Xw3j3
	 v78+wlpKNXog9bTzdFt4T+r7gP1RyXC3X7EYZPDv+NzNYDAHuQ6fU1VbQZQ/FG/TOba2Q
	 bOj+WhsyG1rO7EQ8LwXLyz/z/PGgGfPYrqRF/Qb5K0VpI3mPgB+tgk+RIpuwzd0AtWqUN
	 jWFo/nlSVfECAzqFKPbU9GHJrPiQZm0xIYKUq6TWWJP7Y4qfc6QCzNjAJbTMWFEX/ig==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795461130;
	h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References:
	 Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=669cLwprKalZDSaW7X4qn1vPbEGUYgE2wL6e+ZzxvrQ=;
	b=y/7In817nZVbHUZXzDckmgqR+FzkcOOE9y1tZ8Xgzj8rgg3sZh52fxCaFGvm7OPmO0hU
	 iauvW4QuMLjVCi29+gmeyzhD+0PO5imMfOouN93d+tIS2kbnn6oDSnVe4RZIF/0V7aRAS
	 q5LEqqTq6a1026dwbj9pTw7YuuHch8HTFdRHzZUZ4PGORVDIDIVeN6n/h3QsADxtp0cmn
	 DJYuKbOWkDyGIE4GIeVLId46tRiIU3nq4cpexnQpzQv5/TK5f2RlSCJu7aJ78Yp3IKf/3
	 8fs597yHmoaqwPi2PhnOglQhUM7QTeu3Ez79WSsXvvnha6KLt6Zk2LgcajeSU69868g==
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="e0f/DZkH";
	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 F21D6606A31A
	for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 19:12:09 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 130C51F000CA;
	Mon, 23 Nov 2026 19:12:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795461129;
	bh=669cLwprKalZDSaW7X4qn1vPbEGUYgE2wL6e+ZzxvrQ=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=e0f/DZkHLzllD7hOPZdQff2ObT5yonlnpopG1JZ2jgVp+VWS2kebgLaC3XpBrbRwI
	 uYez0Hii9VnBM7LJZa5mFf5W8xrzlwmwkPHDQBX7QgOEo9dcoeVczYdOUWFKZw+c+R
	 Ix1G29vstzkAXnB9Git7Ird6ExZjkyIKKckVlN1O9+rca85AOwrhRJeZzRYzTJQnUL
	 C5aLQVaDOsV/GvpuLmrB5YIRxM6e+Q4A1/DCCIv3RaFJJag/ePBzqs3ohvZBIapZhB
	 w8ZtV45gJvlUezrR7phVoKb8ae4xi3mTjtAobBN3ww43wskW8INB8CzqHOHC5p/wbI
	 +9J33wL2ImCaQ==
X-Cc: magnus.karlsson@intel.com, stfomichev@gmail.com, kuba@kernel.org,
 pabeni@redhat.com, tushar.vyavahare@intel.com, kerneljasonxing@gmail.com,
 Maciej Fijalkowski <maciej.fijalkowski@intel.com>
X-In-Reply-To: <20261119164636.1071385-11-maciej.fijalkowski@intel.com>
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