Article View: linux.kernel.netdev
Article #3488Re: [PATCH v3 net-next 06/15] selftests: xsk: move the AF_XDP test suite to selftests/net
From: Björn Töpel
Date: Thu, 15 Oct 2026 08:22
Date: Thu, 15 Oct 2026 08:22
31 lines
7118 bytes
7118 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes: > Move the xskxceiver engine, the AF_XDP userspace library, the test > definitions and the XDP program to net/lib/xsk, and test_xsk.sh with > its prerequisites script to selftests/net. A later patch drives the > same engine against real NICs from drivers/net/hw, and net/lib is where > both suites take shared helpers from. > > net/lib builds xskxceiver with its XDP program and skeleton, using the > bpftool in PATH, and skips it with a warning when bpftool is missing or > does not run; test_xsk.sh then skips too. xskxceiver links -lpthread, > which glibc older than 2.34 needs for the threads of test_xsk.c. > > Like the rest of net/lib, xskxceiver builds against the installed uapi > headers, so include linux/kernel.h for min_t() directly rather than via > the tools copy of linux/netlink.h. tools/include goes ahead of CFLAGS, > so that O= builds take linux/kernel.h and linux/types.h from it rather > than from a source tree usr/include. > > Move the two ethtool ring helpers from network_helpers into xsk.c and > point the kselftest.h include of test_xsk.h at the net/lib include > path. The XDP program moves unchanged; its Ethernet header bound check > compares pointers of distinct types, so net/lib builds it with > -Wno-compare-distinct-pointer-types, as the bpf selftests do. > xdp_hw_metadata and the xdp_metadata test keep using xsk.c and xsk.h > from their new location. Update the AF_XDP entry in MAINTAINERS. > > Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID:
<87ld7z74qq.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-346605-linux-kernel-netdev=dewy.ruReferences:
<20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-7-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-346605-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v3 net-next 06/15] selftests: xsk: move the AF_XDP test suite to selftests/net Date: Thu, 15 Oct 2026 10:22:21 +0200 Organization: Usenet Network Message-ID: <87ld7z74qq.fsf@all.your.base.are.belong.to.us> References: <20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-7-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="2484519"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:g5Vpvd3AzaAyZLojxN1Epph7JJA= sha256:W6pPiuffjKBqVvumfUFyiOff7HDWYHV6BOFoO8dURKo= sha1:u3Kc1t1carG3Y5Tv7oOKejb2X5M= sha256:kASytuFNyyHlshwRAVrPdZMA5UuvQZluGDuNJ7rtrJI= 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 A187411027C; Thu, 15 Oct 2026 11:30:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 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, 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 P4apus1IlQzB; Thu, 15 Oct 2026 11:30:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346605-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 0357210F7E9; Thu, 15 Oct 2026 11:30:08 +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 981B329152; Thu, 15 Oct 2026 08:22:26 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52AFA41442E; Thu, 15 Oct 2026 08:22:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n+bzdRN4" 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 362813E7BCA; Thu, 15 Oct 2026 08:22:25 +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=1792052546; cv=none; b=j6qDyknC3hiu2CrqUWy8ZX2s3L4u9LtabBViiu7peCK1Ymk/SjeIbW+fGB4GbVDrsTDxKwH/SakBClEpMmvKlwECogpgmKOEzMC5k1ftet5TNVYm2W1ukMiWb622UOw5VmToFsDqYuqDTCI+nsXRBOvQBRZunYzZ6Rtrl+koKzw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792052546; c=relaxed/simple; bh=G+L/wgaoYcqBZ4ijjYMw+BMWmzjqLw6Vr6U8+yyyXFo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AuZCAasY0QJ/jCVbJgUHOShWGhjQjqWoZcbVc/uzgpdLbc5P92wedOFbRBO/rLKkY/+iEV/99cQABvxMCK7eo33c+PCeZNqmf+UUMp/NYTGlRITOErcSoBfUAxtOIwFuPYKkIquRZz3CcqgqX6WL1IqAZKoMjlrvTJOtw9pxcGU= 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=n+bzdRN4; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5655C1F000C4; Thu, 15 Oct 2026 08:22:24 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792052545; bh=G+L/wgaoYcqBZ4ijjYMw+BMWmzjqLw6Vr6U8+yyyXFo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=n+bzdRN4gOLiRgh3GakUYRHOzLlWGtjXfmEX8W49SSAqSJAw4Y16AlhLUtI9P7iWq vhpwh8IX4kf4b4LC35CO7X1D0896mEGQry56K+23C/TUROsg2WXpUmDGKGyeF6c9v+ GPOX0iHWjjJZz2oE9QGotAHq8FZu7bsMq+E49DDO/Dmnb6Ja6GjXgvoAh73zqBL3iM DTwJbW7EQ4cKIDGPMO7VS0f/5kvH4+zwlUqaVQ1WkTWUuZ92fMzqaOxVZ3mAt8VCE0 VOClSVaAgtV0se2KXlld1oR8ouxG0s5F0fd2OCUKRsD+eskOcfakumOZQa6Xd9OQRD 96p90kVRDdu0Q== 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-7-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>