From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id A5D271780C; Mon, 01 Sep 2025 14:04:12 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 76D9D17774; Mon, 01 Sep 2025 14:04:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) by atuin.qyliss.net (Postfix) with ESMTPS id E0A4717772 for ; Mon, 01 Sep 2025 14:04:09 +0000 (UTC) Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2454014001FE; Mon, 1 Sep 2025 10:04:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 01 Sep 2025 10:04:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1756735449; x=1756821849; bh=u+yDy+7njQ ZAwHVbqxo1wR+uhWBgcst9GnCW1E740RY=; b=kQoOoAPdmg+Ve+DuYe10jtO4qa pqcmcCbN/H8hSnJ7S4J4jXVMMaAyAzFwdMnXvR3yeqz22Zs4N5axCt88vNv4W4Kt oqObe0Plss74ol17vVmNQlebdpwwP+wt3vT7SLoQpyRvRx/hTwveaBLisCAuWoD1 uw9dB/WRKDUTfr2F1vzxXldYBkOzN9v7VK43Syl6C4801pf0rku9UvDibIOA/QIa UD3uZtkN1s7xASwTKh8Otkq18ZNHSmQrC9ITbIkJ+e//JlcAwn3dRnnEYlzlK4/6 UQaewK4QI2WBipT3mdOd6weZF3l/0/ybj5XKaHDh32RHee6Ez76c2dv034xA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1756735449; x=1756821849; bh=u+yDy+7njQZAwHVbqxo1wR+uhWBgcst9GnC W1E740RY=; b=hHEhY73VwruIg1/OMCSMQCY76qu/oeXsFXYX/bht5Hkg+2binDu K5OoxDIpChpHD/evH511qRJAXBgjRGONlkuwnnOxLCQpgSx4tiK1ezjoVPOUm5b0 2toT7PG6B3fwL1gvWKXeQ9/8j2kSXe+GJNN9Ljy6I7VkKG6NldZTUVHWgUzkvwdT xy/Yfj0Ya2KsxggQYfmnUYiIw6NgeW7VqGp7spA+NpOR5khkcnAy6QqzKV8DsxnT d7YdXhtcCvtBwMJrAjkValiK4yfnU7KvlKIL0sadbWTOKe5PKWezPOniVAP4132c vs9wN3OqEVk8u4UfN+miKmUCWqsd0diWMVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduledvfeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeeiudffue eilefgtefgtddttdekkeehkefgheekudefveetgeefiefftedvteeuveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep hihurhgvkhgrsegthigsvghrtghhrghoshdruggvvhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Sep 2025 10:04:08 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 814AB15EF61E; Mon, 01 Sep 2025 16:03:57 +0200 (CEST) From: Alyssa Ross To: Yureka Lilian Subject: Re: [DO_NOT_APPLY v2 1/3] add xdp-forwarder In-Reply-To: <20250831205808.3962245-2-yureka@cyberchaos.dev> References: <20250831205808.3962245-1-yureka@cyberchaos.dev> <20250831205808.3962245-2-yureka@cyberchaos.dev> Date: Mon, 01 Sep 2025 16:03:55 +0200 Message-ID: <87ldmyp8vo.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: XN2NGO3L7BP7MUHPWOET2ERUKMQSE3OA X-Message-ID-Hash: XN2NGO3L7BP7MUHPWOET2ERUKMQSE3OA X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: devel@spectrum-os.org X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Yureka Lilian writes: > diff --git a/tools/xdp-forwarder/Makefile b/tools/xdp-forwarder/Makefile > new file mode 100644 > index 0000000..24268d9 > --- /dev/null > +++ b/tools/xdp-forwarder/Makefile > @@ -0,0 +1,28 @@ > +CC ?= gcc > +CLANG ?= clang > +prefix ?= /usr/local > +bindir ?= $(prefix)/bin > +xdpdir ?= $(prefix)/lib/xdp > + > +TOOLS = set_router_iface > +PROGS = prog_router.o prog_physical.o > + > +set_router_iface: set_router_iface.c > + $(CC) `pkg-config --libs --cflags libbpf` -o $@ $^ > + > +prog_%.o: prog_%.c > + $(CLANG) $(NIX_CFLAGS_COMPILE) -target bpf -I include -g -c -o $@ $^ > + > +tools: $(TOOLS) > + > +progs: $(PROGS) > + > +all: tools progs > + > +install_tools: $(TOOLS) > + install -Dm755 -t $(bindir) $^ > + > +install_progs: $(PROGS) > + install -Dm755 -t $(xdpdir) $^ > + > +install: install_tools install_progs Could we integrate this into our existing Meson build instead? I think we should rename the current "guest" option to "app", and add a new option for driver VM stuff. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaLWnywAKCRBbRZGEIw/w ontUAQDFqdZ9EeCa4izGWRx/hlBTNeBnCq7eEhDVo/CgwBOO8gD9FmzNkYl4u7iF oNJnSRrZEGEh3UqHY6q/g5uc2VigSQY= =Zgrd -----END PGP SIGNATURE----- --=-=-=--