microsoft / microsoft/ebpf-for-windows

Add support for ebpf program dispatching with priorities at a given hook

Open
#908 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

### Describe the feature you'd like supported

As shown at https://github.com/l3af-project/l3af-arch/blob/main/discussions/chaining_enhancements.md#xdp and https://github.com/xdp-project/xdp-tools/blob/master/lib/libxdp/protocol.org, Linux recently added the ability to register multiple xdp programs and invoke them sequentially in priority order.

Today on Windows, we still either only support 1 program attached to a given hook (modulo tail calls), or support multiple with no way of configuring the order in which programs are invoked.

### Proposed solution

We should support this on eBPF for Windows as well, for arbitrary hooks (not just xdp).

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Read the referenced chaining_enhancements.md section on XDP and libxdp/protocol.org to understand priority-based dispatching. Then inspect the existing eBPF-for-Windows hook-registration and dispatch entry points, which the issue does not identify. Done means multiple programs can be registered for arbitrary hooks and are invoked in a configurable priority order, with tests covering that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.