From: Yureka Lilian <yureka@cyberchaos.dev>
To: devel@spectrum-os.org
Cc: Yureka Lilian <yureka@cyberchaos.dev>
Subject: [PATCH v4 0/5]
Date: Tue, 23 Sep 2025 15:19:58 +0200 [thread overview]
Message-ID: <20250923132012.28013-1-yureka@cyberchaos.dev> (raw)
The patches up to and including "vm/sys/net: build against pkgsMusl" can
be applied right away, while the last commit ("vm/sys/net: integrate
xdp-forwarder") does not make sense without the router.
Changes since v3:
- Apply suggestions from Demi in meson recipe, prog_*.c
- Split out the appSupport -> guestSupport rename into a seperate commit
- Split out the switch to pkgsMusl into a separate commit with reasoning
- rename set_router_iface to set-router-iface
Changes since v2:
- Switch xdp-forwarder build to meson
- Add guest build variant of spectrum-tools
Changes since v1:
- rebased
- apply new uncrustify config
- moved xdp-forwarder to tools/
- split integration into separate commit
- use linuxHeaders instead of vmlinux.h
- use original xdp-tutorial {parsing,rewrite}_helpers.h
- inlined the load scripts into /etc/iface/mdev, using /usr/lib/xdp as
fixed prefix for finding the XDP progs
- removed the README, added a paragraph to architecture doc instead
Yureka Lilian (5):
tools: rename guestSupport -> appSupport
tools: add xdp-forwarder
docs/architecture: add paragraph about networking
vm/sys/net: build against pkgsMusl
vm/sys/net: integrate xdp-forwarder
Documentation/about/architecture.adoc | 20 ++
img/app/default.nix | 4 +-
pkgs/default.nix | 8 +-
release/checks/pkg-tests.nix | 3 +-
tools/default.nix | 21 +-
tools/meson.build | 6 +-
tools/meson_options.txt | 7 +-
tools/shell.nix | 2 +-
tools/xdp-forwarder/include/parsing_helpers.h | 274 ++++++++++++++++++
tools/xdp-forwarder/include/rewrite_helpers.h | 146 ++++++++++
tools/xdp-forwarder/meson.build | 48 +++
tools/xdp-forwarder/prog_physical.c | 39 +++
tools/xdp-forwarder/prog_router.c | 43 +++
tools/xdp-forwarder/set_router_iface.c | 30 ++
vm/sys/net/Makefile | 19 +-
vm/sys/net/default.nix | 23 +-
vm/sys/net/image/etc/fstab | 2 +
vm/sys/net/image/etc/mdev/iface | 27 +-
vm/sys/net/image/etc/nftables.conf | 8 -
vm/sys/net/image/etc/s6-rc/connman/type | 1 -
.../net/image/etc/s6-rc/connman/type.license | 2 -
.../net/image/etc/s6-rc/mdevd-coldplug/type | 1 -
.../net/image/etc/s6-rc/nftables/type.license | 2 -
vm/sys/net/image/etc/s6-rc/nftables/up | 6 -
24 files changed, 676 insertions(+), 66 deletions(-)
create mode 100644 tools/xdp-forwarder/include/parsing_helpers.h
create mode 100644 tools/xdp-forwarder/include/rewrite_helpers.h
create mode 100644 tools/xdp-forwarder/meson.build
create mode 100644 tools/xdp-forwarder/prog_physical.c
create mode 100644 tools/xdp-forwarder/prog_router.c
create mode 100644 tools/xdp-forwarder/set_router_iface.c
delete mode 100644 vm/sys/net/image/etc/nftables.conf
delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/type
delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/type.license
delete mode 100644 vm/sys/net/image/etc/s6-rc/mdevd-coldplug/type
delete mode 100644 vm/sys/net/image/etc/s6-rc/nftables/type.license
delete mode 100644 vm/sys/net/image/etc/s6-rc/nftables/up
--
2.51.0
next reply other threads:[~2025-09-23 13:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-23 13:19 Yureka Lilian [this message]
2025-09-23 13:19 ` [PATCH v4 1/5] tools: rename guestSupport -> appSupport Yureka Lilian
2025-09-23 15:00 ` Alyssa Ross
2025-09-23 15:12 ` Yureka
2025-09-23 15:19 ` Alyssa Ross
2025-09-23 13:20 ` [PATCH v4 2/5] tools: add xdp-forwarder Yureka Lilian
2025-09-23 13:58 ` Alyssa Ross
2025-09-23 15:14 ` Alyssa Ross
[not found] ` <3b730bf9-15f7-43c9-8ea7-4ebd20e9d3e5@yuka.dev>
2025-09-23 15:31 ` Alyssa Ross
2025-09-23 15:50 ` Yureka
2025-09-23 16:17 ` Alyssa Ross
2025-09-23 15:16 ` Alyssa Ross
2025-09-24 9:52 ` Yureka
2025-09-23 13:20 ` [PATCH v4 3/5] docs/architecture: add paragraph about networking Yureka Lilian
2025-09-23 13:20 ` [PATCH v4 4/5] vm/sys/net: build against pkgsMusl Yureka Lilian
2025-09-23 15:20 ` Alyssa Ross
2025-09-23 13:20 ` [PATCH RFC v4 5/5] vm/sys/net: integrate xdp-forwarder Yureka Lilian
2025-09-23 15:24 ` Alyssa Ross
2025-09-23 15:24 ` Yureka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250923132012.28013-1-yureka@cyberchaos.dev \
--to=yureka@cyberchaos.dev \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).