Commit Graph

2 Commits (6f8fd230d4f87971075d8d32115f15908e67d9e6)

Author SHA1 Message Date
epheo 6f8fd230d4 aya: add support for BPF_PROG_TYPE_SK_REUSEPORT
Implements SK_REUSEPORT support to enable programmable socket
selection within SO_REUSEPORT groups.

- #[sk_reuseport] macro for eBPF programs
- SkReuseport program type with load/attach methods
- SkReuseportContext with sk_reuseport_md field access
- ReusePortSockArray map for socket management
- SK_PASS/SK_DROP constants for return values
- Documentation and usage examples
- Some integration tests

This allows load balancing decisions to be made programmatically
with SO_REUSEPORT set.

Fixes: #215
3 weeks ago
Dave Tucker 41c61560ea chore(aya-ebpf): Rename bpf -> ebpf
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2 years ago