Article View: linux.kernel.netdev
Article #3511Re: [PATCH v3 net-next 11/15] selftests: xsk: add a hardware mode to xskxceiver
From: Björn Töpel
Date: Thu, 15 Oct 2026 09:42
Date: Thu, 15 Oct 2026 09:42
39 lines
7070 bytes
7070 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes: > drivers/net/hw/xsk.py, added later in this series, runs each hardware > AF_XDP case as a zero-copy DUT endpoint and an SKB-mode remote endpoint > over a physical link, without negotiating capabilities between them. > Add what such a run needs to xskxceiver: > > - --hw sends UDP/IPv4 test packets (--udp-src, --udp-dst, --udp-port) > between the real interface MACs (--peer-mac); XDP_SHARED_UMEM, whose > program picks the socket by a synthetic destination MAC, skips This reads weird to me. I wonder if we can avoid introducing a separate "hardware" mode here? It seems to bundle packet format, link handling, and assumptions about the endpoint modes. Those are separate concerns, and much of this should work with veth too, no? Could we first make the real MAC addresses and IPv4/UDP format common to both veth and physical-device runs? Then --listen could work independently, timeouts could be configurable, and test selection could reflect the actual endpoint modes and capabilities. For example, skipping TX_QUEUE_CONSUMER because hw_test implies mixed ZC/SKB endpoints seems to encode the launcher's current configuration into the test itself. "Real" endpoints could also run the same mode. If we need to keep both packet formats, something like --packet-format=udp would maybe describe it better. I'd prefer keeping these behaviors independent rather than giving the combined mode another name. Also, we need IPv6 support here in addition to IPv4. You can't assume that the DUT is onlink or IPv4. Björn
Technical Details
Message-ID:
<87tsmn5mg4.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-346643-linux-kernel-netdev=dewy.ruReferences:
<20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-12-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-346643-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v3 net-next 11/15] selftests: xsk: add a hardware mode to xskxceiver Date: Thu, 15 Oct 2026 11:42:51 +0200 Organization: Usenet Network Message-ID: <87tsmn5mg4.fsf@all.your.base.are.belong.to.us> References: <20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-12-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="2498809"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:o0UpZAPHEOvHPNLNCQ3B+HKa4Q0= sha256:GXDKOtvx7Sk7rh5dHWsw6WzeS1UzQgO8KCpTDQhBF+c= sha1:Gyv7ZxsAKSwH0lc2Cjpp9D1WyIs= sha256:IK5oSc2IjuQaj9g255Y72xFrnKj06HwlrR/PqTA1P1o= 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 636E21102A0; Thu, 15 Oct 2026 12:48:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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 Evum700KpIjk; Thu, 15 Oct 2026 12:48:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346643-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 213FE11029E; Thu, 15 Oct 2026 12:48:40 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 5B2524676B; Thu, 15 Oct 2026 09:43:01 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C1D4FE2F5; Thu, 15 Oct 2026 09:42:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GfIxfCLp" 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 AAC71449EB2; Thu, 15 Oct 2026 09:42:55 +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=1792057377; cv=none; b=FGwlNYt39s9cgr87iIqztjr6tid8Js3qZHanx3TpjomEtO7hmqqGnMSnJFgzwCnDLCEdYD1EZg5RE+Rt3/WhGJ/lz2D1UcrIWpg7Jj5TlGy0zR3GZz5bUu3+PlAVLBwDuWjXdE+hU/idbbctIVSBnTQtTamVh1ZlELuVPufnJS4= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792057377; c=relaxed/simple; bh=znfCEwm3GWzKszFbNl1kkrBKuTB5GL0Po6X0Khp3RVQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=lpAZN9BO6lP0vrx6WjUXdfE+x/MWeI29qLpKiR1mVtFeDgidM1JTOYIEeLulATdcASR61bwW4vJthHfuHk4hYBE0jKaFxLFrqWwzTd9E+6loqrVf3Mc36xj/dNasqWdQV9oyHSV+eUVAXPw83TsX9cvqSozKOCcu9k75edqx1N0= 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=GfIxfCLp; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 824A61F000C4; Thu, 15 Oct 2026 09:42:54 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792057375; bh=g4clIODsEca1+J5TLAYhHXBcWbPQe9okPUAhZ7vXAa8=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=GfIxfCLp1ln7ZfLbUFRZ+biNEr58KuMWvP1gmR4En3e3MCyrVI2aEu4fJ7i4PmlPU SsQQYi2JNbl3Oje3w4ArGmyr+VHQSNzRh5vwicSr1JCqCFhuPUqVlNuqQ/GAa0078X 9xfn9sMhDX/GZGm0XkGBGoF9SffRMI9Du/viCR3VJUcapwh0Bd8i+msqrY2pSD+t8k OtPubR9bozTX2zFWIYChvLUzE/+eUcXE16g2bcY9gDE0Apkuz+IyTkOzESiwQ+qiXN REJDjzjyDpiH8ooivpDIVIMBPRYi3Vvm+JoWicJCqpEMrWsMg/dUJjEGF72q5NNbvQ 7vB0Y+Qu/wnnQ== 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: <20261014184539.774708-12-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>