Skip to content

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

@shpalani

Description

@shpalani

Describe the feature you'd like supported

Currently, ebpf-for-windows has netebpfext extension that supports XDP.
This enhancement request is to move the existing netebpfext's XDP support in ebpf-for-windows, so it can be integrated with xdp-for-windows with the native xdp extension supported.

Work completed

a. Add a new program and attach type: BPF_PROG_TYPE_XDP_TEST and BPF_XDP_TEST in eBPF headers and create new GUIDs for EBPF_PROGRAM_TYPE_XDP_TEST and EBPF_ATTACH_TYPE_XDP_TEST respectively.
b. Implement necessary changes in netebpfext to use the TEST versions in its program information.
c. Modify the program information export tool to export _TEST variants of XDP.
d. Adjust the xdp_tests to override the program type and attach type.

Remaining Work

a. Remove the XDP_TEST hook / program type in netebpfext
b. Move any test coverage of XDP_TEST into xdp-for-windows repo as necessary
c. Remove any ebpf / netebpfext tests that rely on XDP_TEST to use some other program type (this may be a no-op as this should have been completed above, but it is good to double check prior to completion of this task)

Additional context

No response

Metadata

Metadata

Assignees

Labels

P1breaking changecleanupAffects API usability or code maintainability but not correctness or applicabilitytriagedDiscussed in a triage meeting

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions