Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xdp adjust head part1 #522

Merged
merged 5 commits into from
Sep 14, 2021

Conversation

shankarseal
Copy link
Collaborator

This is part 1 of implementation for bpf_xdp_adjust_head helper.

This PR adds the prototype for the new function in netebpf ext XDP program information. Rest of the PR Is developing a sample eBPF Program that calls this function to encap an inbound packet with an extra IP header and reflects it back to the sender. And teh user mode unit test was added to test this program.

Part 2 will provide the actual implementation of the helper and an app to perform test with real network packets.

This PR builds on top of #520

include/ebpf_nethooks.h Outdated Show resolved Hide resolved
include/ebpf_nethooks.h Outdated Show resolved Hide resolved
include/ebpf_nethooks.h Outdated Show resolved Hide resolved
netebpfext/net_ebpf_ext.h Outdated Show resolved Hide resolved
netebpfext/net_ebpf_ext_bind.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tools/encode_program_info/encode_program_info.cpp Outdated Show resolved Hide resolved
netebpfext/net_ebpf_ext.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

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

Ok other than some typos in comments

netebpfext/net_ebpf_ext_xdp.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
tests/sample/reflect_packet.c Outdated Show resolved Hide resolved
@shankarseal shankarseal force-pushed the xdp_adjust_head_part1 branch 2 times, most recently from 32cbe75 to 1d42a2b Compare September 13, 2021 21:15
@dthaler
Copy link
Collaborator

dthaler commented Sep 13, 2021

@shankarseal please rebase and resolve conflicts

@shankarseal shankarseal merged commit e84efdf into microsoft:master Sep 14, 2021
@shankarseal shankarseal deleted the xdp_adjust_head_part1 branch September 14, 2021 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants