From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id A0AF51FF0B4 for ; Tue, 10 Nov 2026 14:50:26 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id BB5B02165D; Tue, 10 Nov 2026 14:50:22 +0100 (CET) From: Hannes Laimer 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 Message-ID: <20261110135005.2847847-2-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261110135005.2847847-1-h.laimer@proxmox.com> References: <20261110135005.2847847-1-h.laimer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794318618793 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.297 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: DR5CR63G73TAWBHUUYNGXBWXSOPSET2M X-Message-ID-Hash: DR5CR63G73TAWBHUUYNGXBWXSOPSET2M X-MailFrom: h.laimer@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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