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-bench: Add support for the redirect action with --load-mode load-bytes #452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nimrod-oren
Copy link
Contributor

This pull request extends the --load-mode flag functionality to xdp_redirect_basic.

This continues the work done in pull request #409,
to ensure support for the xdp-bench basic redirect action when the linear part is empty.

Update the documentation to reflect the changes made in pull request xdp-project#409 (d7edea3).

Signed-off-by: Nimrod Oren <[email protected]>
This commit introduces xdp_redirect_basic_load_bytes_prog to xdp-bench.
This program uses the bpf_xdp_load_bytes and bpf_xdp_store_bytes helpers for packet data access.
In contrast, xdp_redirect_basic_prog uses direct packet access.

The program that will be attached is determined by the --load-mode flag.

Signed-off-by: Nimrod Oren <[email protected]>
@nimrod-oren nimrod-oren marked this pull request as ready for review November 14, 2024 16:10
@nimrod-oren
Copy link
Contributor Author

Ready for review :)

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.

1 participant