Article View: linux.kernel.netdev
Article #1189Re: [PATCH v2 net-next 08/14] selftests: xsk: run one test case per xskxceiver invocation
From: Björn Töpel
Date: Fri, 09 Oct 2026 11:25
Date: Fri, 09 Oct 2026 11:25
32 lines
6969 bytes
6969 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes: > Make test_xsk.sh own the mode x case matrix and run xskxceiver once per > case, so that every case starts from a fresh process and a case that > crashes fails only itself. A single case is also the unit that the next > patch splits into separate RX and TX endpoint processes. > > xskxceiver now requires -m and -t and runs exactly that case. It > reports one KTAP result and exits with its verdict. An unsupported mode > skips the case instead of exiting with XFAIL. > > test_xsk.sh runs every case in the skb and drv modes, or in the one > given with -m, in both the softirq and the busy-poll pass, and prints a > summary of the passed, skipped and failed cases. -t also accepts a test > name, which is resolved through xskxceiver -l. Only skb and drv modes > are accepted, as veth has no zero-copy support, and the script skips > when xskxceiver was not built. As ARGS is now rebuilt for every case, > exec_xskxceiver() adds -b to a local copy of it. > > Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> > --- > .../selftests/net/lib/xsk/xskxceiver.c | 52 ++++----- > tools/testing/selftests/net/test_xsk.sh | 102 ++++++++++++++---- > tools/testing/selftests/net/xsk_prereqs.sh | 6 +- > 3 files changed, 103 insertions(+), 57 deletions(-) Again, Python please. Maybe carry the bash side over in the first commit, and here introduce a new, shiny Python test driver? Björn
Technical Details
Message-ID:
<87mrsnqfor.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343594-linux-kernel-netdev=dewy.ruReferences:
<20261008114909.734364-1-maciej.fijalkowski@intel.com> <20261008114909.734364-9-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-343594-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v2 net-next 08/14] selftests: xsk: run one test case per xskxceiver invocation Date: Fri, 09 Oct 2026 13:25:08 +0200 Organization: Usenet Network Message-ID: <87mrsnqfor.fsf@all.your.base.are.belong.to.us> References: <20261008114909.734364-1-maciej.fijalkowski@intel.com> <20261008114909.734364-9-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="1092423"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wyqSsjAjW9dfeH5VvWRn6YJ0FRA= sha256:2w7OLEvhQUaKP5yNn9uscEEAQiPzinJtIAV56n2rT1w= sha1:xJF79Q22NzniElwJbxNiQMEx610= sha256:UZDix3k9Z6UezHRr1a2kJbK13DLAgHqdpvsvyrwjXyU= 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 8EA3D10F662; Fri, 9 Oct 2026 14:26:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.741 X-Spam-Status: No, score=-3.741 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.241, 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] 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 b4zBgSHpVNdh; Fri, 9 Oct 2026 14:26:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-343594-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 6B8AB10F5EB; Fri, 9 Oct 2026 14:26:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 621E1603315; Fri, 9 Oct 2026 11:25:46 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 913954D0CF0; Fri, 9 Oct 2026 11:25:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mwt+9Jdr" 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 A65E44ABBCF; Fri, 9 Oct 2026 11:25:12 +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=1791545123; cv=none; b=r3UPLFLFQ7qTeNbdzbB9irzBnKQDoN05SPbKTpw9iqEujgdROcKZ/2RaB1DrOshccszWRenuZTsoOlw5ZraI9/a8oA9bTnpIJOujpO4zmqR2n04MEpWgVyPAenmrbHp56kuz4R9nK8jAfzlhrcIRSOoXkO0etHKRdVcJT5sKnd8= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791545123; c=relaxed/simple; bh=KcUh4MZHrnR4a63nZHmMtJNNZuW4M3LW4ICa3IFGebM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=UvSnenacWPw0Kh1V7RUdwbZLvUdW2q0PVBqSOt6WFdOysjDj/1RmXNpPihXANKXU82Fqa+zYlQ5EJXysYEQepWxXIR6ew50gqiDaSA5jq9x95Cz9t5zvOTl1Sn0pOTvGFsIkL4BiSUlWbxyQcrhj4pfHKaBgrwestmfXBg+LHew= 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=Mwt+9Jdr; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82DCC1F00900; Fri, 9 Oct 2026 11:25:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791545112; bh=U4xMwr/21zOdESeEfZbI6IrEzozFKelIIS7HuFvLYLQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Mwt+9JdrtTOlF0MG7e82+80luCEzOr14WKUw4gs6fwvAZO9j9m2J4rQuo8wFxOtT5 QsVqqT2zizDjJ7jB9kH7alH6rGY7zR4w2no7JzJh7c0Yd/aXSugs3KWksMovoP7MNS yNY9Fek1Tcx5nX75iL3MlFFt8xY0QKpI++UCg/nHQdpC8f2oxfwFpjQLtX/45zLQpr QMk9m6G+XwvNeFtlGs4n77xTAALOrYssxm6GE2Tf3HNNbjxF0agp+WDGcc0Zfq4ABc D6EK/t7bYkvkwrLnN88Gc6/G5t4Zla/SG7S+VddcZi/ja6TWF0DHzdL8CPSsRFCZOj dgmYJxPfj4mNQ== X-Cc: bpf@vger.kernel.org, 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: <20261008114909.734364-9-maciej.fijalkowski@intel.com> 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>