🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3483

Re: [PATCH v3 net-next 05/15] selftests: net: add a generic rule for BPF skeletons

#3483
From: Björn Töpel
Date: Thu, 15 Oct 2026 08:20
17 lines
6223 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:

> net/bpf.mk builds the BPF programs of the networking selftests, but a
> test that loads its program through a bpftool-generated skeleton has to
> bring its own rule for the header. Add a pattern rule that generates
> $(OUTPUT)/<name>.skel.h from $(OUTPUT)/<name>.bpf.o with $(BPFTOOL),
> which defaults to the bpftool in PATH. A failing bpftool leaves no
> partial header behind for a later build to take as up to date.
>
> xskxceiver, which moves to net/lib in the next patch, is the first user.
>
> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>

This could potentially be squashed into the next patch.

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID: <87pkxb74ua.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-346602-linux-kernel-netdev=dewy.ru
References: <20261014184539.774708-1-maciej.fijalkowski@intel.com> <20261014184539.774708-6-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-346602-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 net-next 05/15] selftests: net: add a generic rule
 for BPF skeletons
Date: Thu, 15 Oct 2026 10:20:13 +0200
Organization: Usenet Network
Message-ID: <87pkxb74ua.fsf@all.your.base.are.belong.to.us>
References: <20261014184539.774708-1-maciej.fijalkowski@intel.com>
 <20261014184539.774708-6-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="2483447"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Z7Xid2sP3AbaUY2fqd+l+llANpA= sha256:sFcf7Goh1jgcZWJh3dNsU8sfmxrk9EVAk51aLbVTEHM=
	sha1:MjyW+KvQ++nW1xFZ8FO9TYWl2Xo= sha256:hPyrxPiav+fZKLvIrCbRkMvS5bwt0UHUIePFJyxYiio=
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 091E2110277; Thu, 15 Oct 2026 11:25:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.339
X-Spam-Status: No, score=-1.339 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,
	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 TD2r-9JPMaap;
	Thu, 15 Oct 2026 11:24:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-346602-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 513B4110270; Thu, 15 Oct 2026 11:24:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id B8BB22FE52; Thu, 15 Oct 2026 08:20:52 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C0F124C6531;
	Thu, 15 Oct 2026 08:20:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dvjJQBw7"
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 794B94BD375;
	Thu, 15 Oct 2026 08:20:17 +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=1792052418; cv=none; b=UmGIuH2JrTztCkGkJrcrgCaVFdWEjZqU0hVaO7FDQTZtH/WZOxbCiqMCz++Tysv0ZPWYJpwP76/qVppa2RnAkIxSqhA42In4kHl5AiYeRD6GDzNCm2KgOmB88vfv9DE/s8PnViYAsz8EDdEROIYSmVeAwRhgn7iqDGY9cLcbdmU=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792052418; c=relaxed/simple;
	bh=p8s9HnAbqCE8+qwi6pNXk73AOUH6yg6uQcLSh9aPfwo=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 MIME-Version:Content-Type; b=lSm5YvGZah+cWtmZQdSVgLnX10hOatmpcuidqJQzlzL5iYDt4rrO2drVfzbnB4wt5EUri0yDG/j9IRvO0n6nAvvZ1abcaiscqmR3Hj/Okknrfs6M72JTKLPRK5hdYktXglN2WAZl2mCrWXg6/YNe+R5EUWYyWEGKNSn0HSPQ+tg=
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=dvjJQBw7; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54C551F000C4;
	Thu, 15 Oct 2026 08:20:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792052417;
	bh=p8s9HnAbqCE8+qwi6pNXk73AOUH6yg6uQcLSh9aPfwo=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=dvjJQBw7heBeJMH3vlSnZ7E8/UIgg0q9NrWs/21WCbC2U6dt0fGK+u0zxAGMM2BeD
	 SxjpWISDccE7aDRts2szxBBVCkafP8FkZsMnoxXWMS2Kq5bePWwpU4EOb1KSzLsBkL
	 MGfoM/fvIcN0zUTFWI83aO9PI3mBgSATY4kgqet+wOXEU59Xlk6joRRvUW1MWJ0prZ
	 jlPJuM6/IiFpVbTLpJklOErcRcwA3Uv7oI5fjln9ptOSdmzPeaTs9o3oXOZmjLm4GS
	 WU1DAxgrzwOrYXw2ddErENwdEbog8nGncXogwq0z2wC4OQSqv3jj6jGFphlRbmCx2G
	 DQmil8zQs/2+w==
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-6-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>