From: Hannes Laimer <h.laimer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH proxmox v9 1/5] ebpf: init crate for the code shared by subsystems
Date: Tue, 10 Nov 2026 14:50:01 +0100 [thread overview]
Message-ID: <20261110135005.2847847-2-h.laimer@proxmox.com> (raw)
In-Reply-To: <20261110135005.2847847-1-h.laimer@proxmox.com>
A subsystem handles one concern with tc programs and calls into this
crate. Nothing in the crate runs on its own.
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
Cargo.toml | 2 ++
proxmox-ebpf/Cargo.toml | 16 ++++++++++++++++
proxmox-ebpf/src/lib.rs | 3 +++
3 files changed, 21 insertions(+)
create mode 100644 proxmox-ebpf/Cargo.toml
create mode 100644 proxmox-ebpf/src/lib.rs
diff --git a/Cargo.toml b/Cargo.toml
index 34b2a43d4494..681236207e0b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,6 +20,7 @@ members = [
"proxmox-dns-api",
"proxmox-fixed-string",
"proxmox-docgen",
+ "proxmox-ebpf",
"proxmox-http",
"proxmox-http-error",
"proxmox-human-byte",
@@ -91,6 +92,7 @@ rust-version = "1.88"
# external dependencies
anyhow = "1.0"
+aya = "0.13"
base32 = "0.4"
base64 = "0.22"
bitflags = "2.4"
diff --git a/proxmox-ebpf/Cargo.toml b/proxmox-ebpf/Cargo.toml
new file mode 100644
index 000000000000..de974f7a34a0
--- /dev/null
+++ b/proxmox-ebpf/Cargo.toml
@@ -0,0 +1,16 @@
+[package]
+name = "proxmox-ebpf"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+exclude.workspace = true
+homepage.workspace = true
+license.workspace = true
+repository.workspace = true
+rust-version.workspace = true
+
+[dependencies]
+anyhow.workspace = true
+aya.workspace = true
+log.workspace = true
+nix = { workspace = true, features = ["fs"] }
diff --git a/proxmox-ebpf/src/lib.rs b/proxmox-ebpf/src/lib.rs
new file mode 100644
index 000000000000..22e094233bed
--- /dev/null
+++ b/proxmox-ebpf/src/lib.rs
@@ -0,0 +1,3 @@
+#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+//! The shared code of eBPF subsystems, one subsystem per concern. Nothing here runs on its own,
+//! a subsystem describes its tc programs and calls into this crate.
--
2.47.3
next prev parent reply other threads:[~2026-11-10 13:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 13:50 [PATCH proxmox v9 0/5] add proxmox-ebpf library Hannes Laimer
2026-11-10 13:50 ` Hannes Laimer [this message]
2026-11-10 13:50 ` [PATCH proxmox v9 2/5] ebpf: tc: add the link plumbing Hannes Laimer
2026-11-10 13:50 ` [PATCH proxmox v9 3/5] ebpf: subsystem: add the shared tc program handling Hannes Laimer
2026-11-10 13:50 ` [PATCH proxmox v9 4/5] ebpf: subsystem: place subsystem links in a fixed order Hannes Laimer
2026-11-10 13:50 ` [PATCH proxmox v9 5/5] ebpf: debian: package the crate as a Rust library Hannes Laimer
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=20261110135005.2847847-2-h.laimer@proxmox.com \
--to=h.laimer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.