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

Merged
merged 2 commits into from
Nov 19, 2024

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.

@nimrod-oren nimrod-oren force-pushed the xdp-bench_no-dpa-redirect branch from d04057c to 2da1e7a Compare November 6, 2024 13:58
@nimrod-oren nimrod-oren force-pushed the xdp-bench_no-dpa-redirect branch from 2da1e7a to 54291b2 Compare November 14, 2024 10:51
@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 :)

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]>
@tohojo tohojo force-pushed the xdp-bench_no-dpa-redirect branch from 54291b2 to 3b199c0 Compare November 19, 2024 15:33
@tohojo tohojo merged commit 3b199c0 into xdp-project:master Nov 19, 2024
29 checks passed
@nimrod-oren nimrod-oren deleted the xdp-bench_no-dpa-redirect branch November 19, 2024 15:41
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.

2 participants