Article View: linux.kernel.netdev
Article #6195Re: [PATCH v4 net-next 09/15] selftests: xsk: run one test case per xskxceiver invocation
From: Jakub Kicinski
Date: Wed, 21 Oct 2026 22:01
Date: Wed, 21 Oct 2026 22:01
36 lines
9034 bytes
9034 bytes
On Fri, 16 Oct 2026 19:43:32 +0200 Maciej Fijalkowski wrote: > Replace test_xsk.sh and xsk_prereqs.sh with test_xsk.py, which runs > xskxceiver once per mode and case, so that every case starts from a > fresh process and a crash fails only its own case. A single case is > also the unit that the next patch splits into RX and TX processes. > diff --git a/MAINTAINERS b/MAINTAINERS > index 1fc9eaedd744..6985a42bc09c 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -29784,6 +29784,7 @@ F: include/uapi/linux/if_xdp.h > F: include/uapi/linux/xdp_diag.h > F: net/xdp/ > F: tools/testing/selftests/net/*xsk* > +F: tools/testing/selftests/net/lib/py/xsk.py > F: tools/testing/selftests/net/lib/xsk/ pylint has some complaints, about main(), I think? Could you make it clean? > +++ b/tools/testing/selftests/net/lib/py/xsk.py Really not loving the amount of "library" code added here. Do you need this just to run it over veth in net/ and over real HW in drivers/net/ ? Are the test cases very different? I wonder if we could solve this by parameterizing the env class to use veth instead of netdevsim and then have unified tests? > +def xsk_wait_endpoint_exit(endpoint, label, timeout): odd, the existing cmd() / bkg() stuff doesn't work for you? It works for many other tests... -- pw-bot: cr
Technical Details
Message-ID:
<20261021150145.65a22a61@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-350262-linux-kernel-netdev=dewy.ruReferences:
<20261016174338.787135-1-maciej.fijalkowski@intel.com> <20261016174338.787135-10-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-350262-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v4 net-next 09/15] selftests: xsk: run one test case per xskxceiver invocation Date: Wed, 21 Oct 2026 15:01:45 -0700 Organization: Usenet Network Message-ID: <20261021150145.65a22a61@kernel.org> References: <20261016174338.787135-1-maciej.fijalkowski@intel.com> <20261016174338.787135-10-maciej.fijalkowski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="72590"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:xju+dg3dzqlLoJwRXNZ4Z7fPcXE= sha256:8ZhOdWxLAzEuEneut42SlgjezWpWVgbG1O7d6spjDFA= sha1:2PQgg5YubRRepiIp2E0aCAz3KBg= sha256:nzNttbL+7PCfcvUmWAvFQHdlIqMnAYB/+4x4O+slu3E= 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 4E6F6111128; Thu, 22 Oct 2026 01:02:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.5 X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31 tests=[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 1w_6NjA0yjVz; Thu, 22 Oct 2026 01:02:14 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350262-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 C991A111109; Thu, 22 Oct 2026 01:02:04 +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 4B5B129F7A; Wed, 21 Oct 2026 22:01:48 +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=1792620108; b=jxfdqqq6OLz0Na/l62Wb/zSXMSxAH+/3O86W5V6kHJCLBFvvlDaO/FA0yeFsRLOw6LES YmxSvVN57on0KZdCT5W6nrz6ODc/EmRqPwNzCwI5vVLXC+xhmK6cOgn9TpAkF+McTIHXE zZDeSiaevK5kbX8NrjoDfYD1GIFYcqF+i39CSkKNYX7rWrj4srVKC+kJxg184z7oIePfu mduEStwKfV0Z5zyI819V5P1ID+yGepL5KcTb/6W6RTt0FtkjC+1yGLsqo8+raztH1fpOG JoENh8bZJjtcT6U2/6GF5gB/7eT4NY9xZXLbq7wF/EJrjO4FyiZWWOgVeQF7KJf1X7g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792620108; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=JyaVYtrytA0eaLcHL4hmliuZFXquyT9c4Y2ZvnCIqBc=; b=fOylD6DWPqulnUez4+XQ3MJC2ZJR93QTk6Nr8h52XYlD0/V2EoJvdFATijg7aootUcdB RJ2Ftiqx7YA+6FO9brF/P9zEJ/oe2APSmN5CZ8MRm89Ey9WtLBNfKfCblL5Wf1gmv+98u jh/etk9pw5lf80ZyHQnhbzERZCUggRgQazoWnk2DO5pfogqceDWnKPZEkTC48JIoZh/du gY5bIblY7ukmaly7SezdcMP5qCNn3jvyI3usxB5KmRQ72O4iFstAnm9xdbZaRGyPptgKr GlIi9ZIRUUnlHa+0uT7AVivj3Y+WBit+0j7Myz/Rao1gLWOUG+41vZ4zr1phDS1FY7Q== 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="l+/ePMc2"; 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 22508606A321; Wed, 21 Oct 2026 22:01:48 +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=l+/ePMc2 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=1792620107; b=h0grXauRcYprKZ4SZC3vDyubcgYWxWZeuQwA+tiUQBYXfl7dq0wdlsG1Y8PbLwYcuKet TxkAmdQzs0gNhEyAGAnGwKYAA7bYXSXBB83mQi/Ym1rrqg8Moh2hlvNX2TnDz5C38kLq7 0gtjF/KdzxWJgPaqbn2TQWuW21eOtGN0n0kMW+EXqiGBIDI4CukCIslgQbhpF8+NK2uqH ee0dKXeLLE+flhR+NnGlJ2ORVYefl7Bgwmit+ilstPkxgy7mD7BnuuzgALFUpY8qsjDnK +ThqCF/hO+Tg/KazOws+mtb7T4yGfLoSMJXkgbRafKAmw59FE/0NxisbelR+j9VlyUg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792620107; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=JyaVYtrytA0eaLcHL4hmliuZFXquyT9c4Y2ZvnCIqBc=; b=CxIH0MZ/SVO+kbdtwS7FysIWrHAyGImJ5O09Wr/Ewfa/HiKzKZUeDNinHrfGunNGyme3 n9lohM866rPiXaRre1HYRBiitJ/1q1u02IY1gdRtymubSmGP/WyrXfww+fAm8piomnfPq qY5W+5Zo77GyFmkRSyUJxg3TZ+CepTuVZc5wlx7vmw6EC9RqYcefnQGOT8/vKnIMUmWC7 78JXGrTEpamAc5RB7WgmsmMHPni5hRqkGLoeF8VmqipbtPH3hQu8NYEPHKOLa10vl3EI1 THCet9l2fETjDkSSHuTZnjMPATX+XwV0M8Z777EcvclA8cCZ4PvOqRyGkn1fuuk/mwQ== 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="l+/ePMc2"; 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 0170E606A319; Wed, 21 Oct 2026 22:01:46 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355FA1F000C3; Wed, 21 Oct 2026 22:01:46 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792620106; bh=JyaVYtrytA0eaLcHL4hmliuZFXquyT9c4Y2ZvnCIqBc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=l+/ePMc2pas9bGoAqSfUokAb0f8FZAZLx+G9xwNpw17vswhhu/6hMgjaoPnouoY5v txabJjv2mQLzq68Om6aOOv2LC6O4Bx+YpDR1sehiw8hoW+Pl8VtGI1/6Hq4+gb+qIA fGYc6Nc0g4uDUcZ/81qTvk/Lz9msbDQpYsU33yqXkilKal41n+/HV1PmC+W+ezj3Be BGrhEtUpvx9h8l9W+gFSo/I6UMqW4mMqnP5qzSahPnMd+eFhhuwzsgEDPWhA3lzeeL HLvqTi3p6k+NV+iJAhIfNgj3MhbNnY0tWCOLqA4Wld5284k8JWiBQEcUy/lTR3dE8K +YKJ3rscod4Wg== X-Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, magnus.karlsson@intel.com, stfomichev@gmail.com, pabeni@redhat.com, tushar.vyavahare@intel.com, kerneljasonxing@gmail.com, bjorn@kernel.org X-In-Reply-To: <20261016174338.787135-10-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