Skip to content

Conversation

@kumarvin123
Copy link
Contributor

@kumarvin123 kumarvin123 commented Sep 24, 2025

Description

Removed the XDP Test hook from ebpf.

Work Item : #2974
All XDP tests like Xdp_test/encap_reflect xdp_test/decapsulate_reflect xdp_test/reflect are removed since they rely on the XDP_TEST hook.

Filed a work item in XDP to add support for _net_ebpf_xdp_adjust_head
microsoft/xdp-for-windows#891

Describe the purpose of and changes within this Pull Request.
Please reference an issue with a keyword such as Fixes #abc, Closes #xyz, etc., so the work can be tracked.

Testing

All the CI/CD tests are passing.
Do any existing tests cover this change? Are new tests needed?

This is covered by microsoft/xdp-for-windows#891

Documentation

Is there any documentation impact for this change?
Yes, The documentation is updated.

Installation

Is there any installer impact for this change?
No

@kumarvin123 kumarvin123 changed the title Removed the XDP Test extension Remove XDP_TEST hook and program type in ebpf-for-windows Sep 24, 2025
@kumarvin123 kumarvin123 changed the title Remove XDP_TEST hook and program type in ebpf-for-windows #2974 - Remove XDP_TEST hook and program type in ebpf-for-windows Sep 24, 2025
@kumarvin123 kumarvin123 changed the title #2974 - Remove XDP_TEST hook and program type in ebpf-for-windows Remove XDP_TEST hook and program type in ebpf-for-windows Sep 24, 2025
@dthaler

This comment was marked as resolved.

@kumarvin123 kumarvin123 force-pushed the user/vinodko/XdpTestExtensionRemoval branch 6 times, most recently from a87fe8a to 0f1c3a3 Compare September 27, 2025 03:34
@kumarvin123 kumarvin123 marked this pull request as ready for review September 27, 2025 06:33
@kumarvin123 kumarvin123 linked an issue Sep 29, 2025 that may be closed by this pull request
@kumarvin123 kumarvin123 force-pushed the user/vinodko/XdpTestExtensionRemoval branch 4 times, most recently from 20c7d21 to 28aa1c6 Compare September 30, 2025 21:12
matthewige
matthewige previously approved these changes Oct 1, 2025
@kumarvin123 kumarvin123 added this pull request to the merge queue Oct 3, 2025
@dthaler dthaler removed this pull request from the merge queue due to a manual request Oct 3, 2025
@kumarvin123 kumarvin123 added this pull request to the merge queue Oct 3, 2025
Merged via the queue into main with commit 242ccec Oct 3, 2025
110 checks passed
@kumarvin123 kumarvin123 deleted the user/vinodko/XdpTestExtensionRemoval branch October 3, 2025 23:49
@shankarseal shankarseal mentioned this pull request Oct 6, 2025
8 tasks
lmb added a commit to lmb/ebpf that referenced this pull request Oct 14, 2025
The upstream efW removed the XDP_TEST program type from the repository.
We rely on this type for our unit tests. Switch tests to the SAMPLE
program type, which is a separate driver but also distributed as part
of the efW runtime.

On Windows, running a SAMPLE program requires providing a (possibly
empty) context. To avoid having to change a lot of our unit tests
we make Program.Test and Program.Benchmark provide such empty
buffers.

See: microsoft/ebpf-for-windows#4662
Signed-off-by: Lorenz Bauer <[email protected]>
lmb added a commit to lmb/ebpf that referenced this pull request Oct 14, 2025
The upstream efW removed the XDP_TEST program type from the repository.
We rely on this type for our unit tests. Switch tests to the SAMPLE
program type, which is a separate driver but also distributed as part
of the efW runtime.

On Windows, running a SAMPLE program requires providing a (possibly
empty) context. To avoid having to change a lot of our unit tests
we make Program.Test and Program.Benchmark provide such empty
buffers.

See: microsoft/ebpf-for-windows#4662
Signed-off-by: Lorenz Bauer <[email protected]>
lmb added a commit to lmb/ebpf that referenced this pull request Oct 16, 2025
The upstream efW removed the XDP_TEST program type from the repository.
We rely on this type for our unit tests. Switch tests to the SAMPLE
program type, which is a separate driver but also distributed as part
of the efW runtime.

On Windows, running a SAMPLE program requires providing a (possibly
empty) context. To avoid having to change a lot of tests over and over
we introduce a new mustRun helper.

See: microsoft/ebpf-for-windows#4662
Signed-off-by: Lorenz Bauer <[email protected]>
lmb added a commit to lmb/ebpf that referenced this pull request Oct 16, 2025
The upstream efW removed the XDP_TEST program type from the repository.
We rely on this type for our unit tests. Switch tests to the SAMPLE
program type, which is a separate driver but also distributed as part
of the efW runtime.

On Windows, running a SAMPLE program requires providing a (possibly
empty) context. To avoid having to change a lot of tests over and over
we introduce a new mustRun helper.

See: microsoft/ebpf-for-windows#4662
Signed-off-by: Lorenz Bauer <[email protected]>
lmb added a commit to cilium/ebpf that referenced this pull request Oct 16, 2025
The upstream efW removed the XDP_TEST program type from the repository.
We rely on this type for our unit tests. Switch tests to the SAMPLE
program type, which is a separate driver but also distributed as part
of the efW runtime.

On Windows, running a SAMPLE program requires providing a (possibly
empty) context. To avoid having to change a lot of tests over and over
we introduce a new mustRun helper.

See: microsoft/ebpf-for-windows#4662
Signed-off-by: Lorenz Bauer <[email protected]>
LakshK98 pushed a commit to LakshK98/ebpf-for-windows that referenced this pull request Nov 7, 2025
…4662)

* Removed the XDP Test Extension

* Fixed Failing Tests and scripts

* Fixed the Fuzzer Build

* Fixed documentation

* Removed net_ebpf_ext_xdp_hooks.h and all XDP Unit tests

* Fixed the Lib Fuzzer Harness

* Fixed the Cilium Tests

* ebpfVerifier Sync

* Reverted files with only white space changes

* CR feedback from Anurag

* CR feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove XDP_TEST hook and program type in ebpf-for-windows

6 participants