patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Yureka Lilian <yureka@cyberchaos.dev>
To: devel@spectrum-os.org
Cc: Yureka Lilian <yureka@cyberchaos.dev>, Alyssa Ross <hi@alyssa.is>
Subject: [PATCH v6 2/4] docs/architecture: add paragraph about networking
Date: Wed, 24 Sep 2025 13:42:52 +0200	[thread overview]
Message-ID: <20250924114300.100541-3-yureka@cyberchaos.dev> (raw)
In-Reply-To: <20250924114300.100541-1-yureka@cyberchaos.dev>

Reviewed-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev>
---
 Documentation/about/architecture.adoc | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/Documentation/about/architecture.adoc b/Documentation/about/architecture.adoc
index e32ab27..2b86616 100644
--- a/Documentation/about/architecture.adoc
+++ b/Documentation/about/architecture.adoc
@@ -68,3 +68,23 @@ nix-build img/live --no-out-link | xargs -o nix-tree
 
 See the https://diode.zone/w/8DBDQ6HQUe5UUdLkpDuL35[video] of Spectrum live
 image interactive analysis with nix-tree.
+
+== Networking
+
+The net-vm's purpose is running the Linux drivers for any physical
+interfaces on the spectrum system.
+
+A net-vm (there could be multiple, one per IOMMU-group) will load the
+xdp-forwarder XDP programs on the passed-through physical interfaces as well
+as the downstream virtio interface going into the router (recognized by
+its special MAC address) using mdev events.
+
+The net-vm needs to multiplex between the physical interfaces, as there
+might be several interfaces in the same IOMMU-group.
+
+For this, the xdp-forwarder applies a
+VLAN tag corresponding to the interface id, and redirects the packets to
+the router interface (identified by the router_iface bpf map).
+In the other direction the XDP program loaded on the router interface
+removes one layer of VLAN tagging, and redirects the packets to the
+interface read from the VLAN tag.
-- 
2.51.0


  parent reply	other threads:[~2025-09-24 11:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-24 11:42 [PATCH v6 0/4] xdp-forwarder Yureka Lilian
2025-09-24 11:42 ` [PATCH v6 1/4] tools: add xdp-forwarder Yureka Lilian
2025-09-25  9:55   ` Alyssa Ross
2025-09-26 23:47     ` Demi Marie Obenour
2025-09-25  9:58   ` Alyssa Ross
2025-09-25 10:00     ` Alyssa Ross
2025-09-27  8:00   ` Alyssa Ross
2025-09-27  9:14     ` Yureka
2025-09-27 11:34   ` Alyssa Ross
2025-09-24 11:42 ` Yureka Lilian [this message]
2025-09-27 11:39   ` [PATCH v6 2/4] docs/architecture: add paragraph about networking Alyssa Ross
2025-09-24 11:42 ` [PATCH v6 3/4] vm/sys/net: build against pkgsMusl Yureka Lilian
2025-09-27 11:44   ` Alyssa Ross
2025-09-24 11:42 ` [PATCH RFC v6 4/4] vm/sys/net: integrate xdp-forwarder Yureka Lilian
2025-09-25  9:33 ` [PATCH v6 0/4] xdp-forwarder Alyssa Ross

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=20250924114300.100541-3-yureka@cyberchaos.dev \
    --to=yureka@cyberchaos.dev \
    --cc=devel@spectrum-os.org \
    --cc=hi@alyssa.is \
    /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).