patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Yureka Lilian <yureka@cyberchaos.dev>
Cc: devel@spectrum-os.org
Subject: Re: [DO_NOT_APPLY v2 1/3] add xdp-forwarder
Date: Mon, 01 Sep 2025 16:03:55 +0200	[thread overview]
Message-ID: <87ldmyp8vo.fsf@alyssa.is> (raw)
In-Reply-To: <20250831205808.3962245-2-yureka@cyberchaos.dev>

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Yureka Lilian <yureka@cyberchaos.dev> 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2025-09-01 14:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-31 20:57 [DO_NOT_APPLY v2 0/3] xdp-forwarder Yureka Lilian
2025-08-31 20:57 ` [DO_NOT_APPLY v2 1/3] add xdp-forwarder Yureka Lilian
2025-09-01 14:03   ` Alyssa Ross [this message]
2025-09-01 14:08     ` Yureka
2025-09-01 14:17       ` Alyssa Ross
2025-08-31 20:58 ` [DO_NOT_APPLY v2 2/3] integrate xdp-forwarder into net-vm Yureka Lilian
2025-08-31 20:58 ` [DO_NOT_APPLY v2 3/3] docs/architecture: add paragraph about networking Yureka Lilian

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