Skip to content

Add XDP Dispatcher implementation#1425

Draft
rupansh wants to merge 17 commits intoaya-rs:mainfrom
rupansh:rupansh/xdp-dispatcher
Draft

Add XDP Dispatcher implementation#1425
rupansh wants to merge 17 commits intoaya-rs:mainfrom
rupansh:rupansh/xdp-dispatcher

Conversation

@rupansh
Copy link
Copy Markdown

@rupansh rupansh commented Dec 22, 2025

Initial implementation for #62
Note: This protocol is not compatible with libxdp


This change is Reviewable

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 22, 2025

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 323f941
🔍 Latest deploy log https://app.netlify.com/projects/aya-rs-docs/deploys/69b46fdf9f3b2f000839f733
😎 Deploy Preview https://deploy-preview-1425--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@tamird tamird marked this pull request as draft February 17, 2026 16:33
rupansh and others added 13 commits February 26, 2026 19:10
The aya-xdp-dispatcher-ebpf build.rs unconditionally panics when
bpf-linker is not in PATH, causing CI failures in lint and
build-test-aya jobs that don't install bpf-linker.

Changes:
- ebpf/aya-xdp-dispatcher-ebpf/build.rs: conditional bpf-linker check
- aya-xdp-dispatcher/build.rs: stub file when not building eBPF
- ebpf/aya-xdp-dispatcher-ebpf/src/main.rs: use ebpf-panic crate
- ebpf/aya-xdp-dispatcher-ebpf/src/prog.rs: remove duplicate panic handler
- ci.yml: exclude aya-xdp-dispatcher-ebpf from host jobs, include in eBPF jobs
- xtask/src/clippy.rs: add to eBPF packages list
- aya-xdp-dispatcher/src/lib.rs: fix wildcard import and redundant match
Stable rustc cannot infer the type parameter on Ok(build_integration_bpf)
without an explicit `: bool` annotation on the parse result. Also fixes
rustfmt formatting.
- aya-xdp-dispatcher/build.rs: add explicit -> anyhow::Result<bool>
  return type on closure to resolve E0282/E0283 type inference errors
- aya-obj/src/btf/btf.rs: collapse if into match guard to satisfy
  nightly clippy collapsible_match lint
Use map_or instead of map().unwrap_or() on Result value.
- Use assert! instead of if { panic! } (manual_assert)
- Use drop() instead of let _ = (let_underscore_must_use, let_underscore_drop)
- Use const fn matching pass.rs and two_progs.rs patterns
- Use // comments instead of /// doc comments for binary entry points
The `cargo xtask public-api` lint step requires these files to track
the public API surface of all publishable crates. Generated via
`cargo xtask public-api --bless`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants