Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
eb9d835
WIP
mtfriesen Apr 20, 2026
79201b0
various bugfixes
mtfriesen Apr 20, 2026
91a6c52
fixes/tests/improvements/regressions
mtfriesen Apr 20, 2026
86cca98
add diagnostics and more test cases
mtfriesen Apr 21, 2026
1eb95bd
handle prog_test_run case of redirect
mtfriesen Apr 21, 2026
a4705eb
add docs
mtfriesen Apr 21, 2026
ada7b21
update samples and test them
mtfriesen Apr 27, 2026
577c2fd
fix build and deconflict with parallel built-in xskmap
mtfriesen May 5, 2026
5a252ae
Merge remote-tracking branch 'origin/main' into mtfriesen/ebpf_xsk_map
mtfriesen Jul 7, 2026
429dec3
Update eBPF dependency to v1.3.0
mtfriesen Jul 7, 2026
6f5cd59
Adapt XSKMAP eBPF map provider to eBPF 1.3.0 API and install matching…
mtfriesen Jul 7, 2026
5a128ff
Fix sample CI regressions and add redirect-decision diagnostics
mtfriesen Jul 7, 2026
4afb49c
Enable eBPF in XDP for the eBPF sample tests
mtfriesen Jul 7, 2026
ad40969
Install eBPF before XDP in eBPF sample tests
mtfriesen Jul 7, 2026
2600464
Increase sample test step timeout to 15 min for eBPF install/uninstall
mtfriesen Jul 7, 2026
96f2ca5
Strengthen eBPF redirect diagnostics for arm64 fallback investigation
mtfriesen Jul 7, 2026
79a77ef
Fix xskfwd sample cleanup hang; focus redirect diagnostics on fallbac…
mtfriesen Jul 8, 2026
bd83bd8
Merge remote-tracking branch 'origin/main' into mtfriesen/ebpf_xsk_map
mtfriesen Jul 8, 2026
d190f78
Force xdp uninstall in sample cleanup so post Check Drivers passes
mtfriesen Jul 8, 2026
b6aadc8
Gate eBPF XSKMAP tests on eBPF runtime >= 1.3.0
mtfriesen Jul 8, 2026
68037c1
Fix arm64 redirect fallback via acquire/release ordering in XskCanRed…
mtfriesen Jul 8, 2026
b91e5bb
Revert ineffective XskCanRedirect acquire loads; instrument redirect …
mtfriesen Jul 8, 2026
86f97e9
Capture bpf_redirect_map return action in redirect fallback diagnostic
mtfriesen Jul 8, 2026
7b20b6b
Add kernel redirect-decision diagnostics + short ProgAction log line
mtfriesen Jul 9, 2026
2ea77ba
Fix arm64 eBPF XSKMAP redirect fallback: init ProgTestRunContext on d…
mtfriesen Jul 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 59 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,64 @@ jobs:
shell: PowerShell
run: tools/check-drivers.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -AllowEbpf:($env:XDP_EBPF_BASELINE -ne '0')

sample_tests:
name: Sample Tests
needs: build
strategy:
fail-fast: false
matrix:
windows: [2022, 2025]
configuration: [Release, Debug]
platform: [x64]
runs-on:
- self-hosted
- "1ES.Pool=xdp-ci-functional${{ matrix.platform != 'x64' && format('-{0}', matrix.platform) || '' }}-gh"
- "1ES.ImageOverride=WS${{ matrix.windows }}${{ matrix.platform != 'x64' && format('-{0}', matrix.platform) || '' }}-Functional"
- "JobId=samples_${{ matrix.windows }}_${{ matrix.configuration }}_${{ matrix.platform }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
sparse-checkout: tools
- name: Check Drivers
shell: PowerShell
run: tools/check-drivers.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -AllowEbpf
- name: Prepare Machine
shell: PowerShell
run: tools/prepare-machine.ps1 -ForFunctionalTest -Platform ${{ matrix.platform }} -RequireNoReboot -Verbose
- name: Download Artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
name: bin_${{ matrix.configuration }}_${{ matrix.platform }}
path: artifacts/bin
- name: Test rxfilter sample
shell: PowerShell
timeout-minutes: 15
run: tools/sample-rxfilter-test.ps1 -Verbose -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Duration 10
- name: Test xskfwd sample
shell: PowerShell
timeout-minutes: 15
run: tools/sample-xskfwd-test.ps1 -Verbose -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Duration 10
- name: Test xskrestricted sample
shell: PowerShell
timeout-minutes: 15
run: tools/sample-xskrestricted-test.ps1 -Verbose -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -TimeoutSeconds 10
- name: Convert Logs
if: ${{ always() }}
timeout-minutes: 15
shell: PowerShell
run: tools/log.ps1 -Convert -Name sample_* -Verbose -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }}
- name: Upload Logs
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: ${{ always() }}
with:
name: logs_samples_win${{ matrix.windows }}_${{ matrix.configuration }}_${{ matrix.platform }}
path: artifacts/logs
- name: Check Drivers
if: ${{ always() }}
shell: PowerShell
run: tools/check-drivers.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -AllowEbpf:($env:XDP_EBPF_BASELINE -ne '0')

create_artifacts:
name: Create Release Artifacts
needs: build
Expand Down Expand Up @@ -775,7 +833,7 @@ jobs:
all_tests_complete:
name: All Tests Complete
if: always()
needs: [functional_tests, stress_tests, pktfuzz_tests, xskperf_tests, ring_perf_tests, rxfilter_perf_tests, xskfwdkm_test, xskmaprx_test, xskrestricted_test, downlevel_functional_tests]
needs: [build, build_allpackage, onebranch_build_validation, functional_tests, stress_tests, pktfuzz_tests, xskperf_tests, ring_perf_tests, rxfilter_perf_tests, xskfwdkm_test, xskmaprx_test, xskrestricted_test, downlevel_functional_tests, create_artifacts, sample_tests]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only sample_tests should be added here.

runs-on: ubuntu-latest
permissions: {}
steps:
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XDP_HOOK_ID.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# XDP_HOOK_ID structure

> **Deprecated:** The built-in rules-based program API is planned for removal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert - hook ID applies more generally to XDP, not just the built-in rules engine.

> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Specifies an XDP hook point.

## Syntax
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XDP_MATCH_PATTERN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# XDP_MATCH_PATTERN structure

> **Deprecated:** The built-in rules-based program API is planned for removal.
> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Specifies an XDP inspection program rule match pattern.

```C
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XDP_MATCH_TYPE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# XDP_MATCH_TYPE structure

> **Deprecated:** The built-in rules-based program API is planned for removal.
> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Specifies an XDP inspection program rule match type.

## Syntax
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XDP_RULE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# XDP_RULE structure

> **Deprecated:** The built-in rules-based program API is planned for removal.
> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Specifies an XDP inspection program rule.

## Syntax
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XDP_RULE_ACTION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# XDP_RULE_ACTION structure

> **Deprecated:** The built-in rules-based program API is planned for removal.
> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Specifies an XDP inspection program rule action.

## Syntax
Expand Down
4 changes: 4 additions & 0 deletions docs/api/XdpCreateProgram.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# XdpCreateProgram function

> **Deprecated:** The built-in rules-based program API is planned for removal.
> All users should migrate to eBPF programs. See the
> [eBPF Integration Guide](../ebpf.md) for migration instructions and examples.

Creates a new XDP program.

## Syntax
Expand Down
7 changes: 5 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ XDP for Windows is a high-performance packet processing framework inspired by Li
- **Native XDP**: Requires NIC driver support for maximum performance and direct data path access.
- Provides programmable hook points for packet inspection, modification, and redirection.
- Implements shared memory rings for high-speed packet transfer between kernel and user mode.
- Supports eBPF (experimental) for programmable packet processing.
- Supports [eBPF](./ebpf.md) for programmable packet processing.

### 2. XDP API Headers (User Mode APIs)
- Header-only APIs that expose the XDP API to applications (available for `XDP_API_VERSION_3` or later).
Expand Down Expand Up @@ -48,7 +48,8 @@ XDP for Windows is a high-performance packet processing framework inspired by Li
- The driver is signed and uses standard Windows security mechanisms.

## Extensibility
- XDP for Windows is designed to be extensible via eBPF (experimental) and a primitive built-in rules-based program engine.
- XDP for Windows is designed to be extensible via [eBPF programs](./ebpf.md) through integration with [eBPF for Windows](https://github.com/microsoft/ebpf-for-windows).
- The legacy built-in rules-based program engine is deprecated and planned for removal. See the [eBPF Integration Guide](./ebpf.md) for migration guidance.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- The legacy built-in rules-based program engine is deprecated and planned for removal. See the [eBPF Integration Guide](./ebpf.md) for migration guidance.
- The built-in rules-based program engine is deprecated and planned for removal. See the [eBPF Integration Guide](./ebpf.md) for migration guidance.

- New hook points and interface types can be added as needed.

## Comparison to Linux XDP
Expand All @@ -60,6 +61,8 @@ XDP for Windows is a high-performance packet processing framework inspired by Li
## References
- [Usage Guide](./usage.md)
- [AF_XDP API](./afxdp.md)
- [eBPF Integration Guide](./ebpf.md)
- [eBPF Redirect Map (XSKMAP)](./ebpf-redirect-map.md)
- [FAQ](./faq.md)
- [Threat Model](./threat-model.md)

Expand Down
Loading