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

fix the dependencies of old loader #421

Merged
merged 4 commits into from
May 21, 2024
Merged

Conversation

subaroon
Copy link
Contributor

@subaroon subaroon commented May 9, 2024

Commit 0ded568, made by @donaldh and already merged, changed COPY_LOADER from xdp_loader to xdp-loader, but there are still dependencies on xdp_loader.

I fixed the following:

  • Used xdp-loader instead of xdp_loader in testenv.sh.
  • Added a pinning attribute for the maps to be used in packet03. These maps are expected to be loaded by xdp-loader and must be pinned.
  • Updated README.

related issues

#393

Signed-off-by: subaoon <subaru.fukuda@gmail.com>
Signed-off-by: subaoon <subaru.fukuda@gmail.com>
Signed-off-by: subaoon <subaru.fukuda@gmail.com>
@subaroon subaroon marked this pull request as draft May 9, 2024 05:29
@subaroon subaroon changed the title New loader fix the dependencies of old loader May 9, 2024
@subaroon subaroon marked this pull request as ready for review May 9, 2024 05:33
@subaroon
Copy link
Contributor Author

@tohojo, @netoptimizer
Could you please review this PR?

Copy link
Member

@tohojo tohojo left a comment

Choose a reason for hiding this comment

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

Thank you for fixing things up; just one comment :)

$ t exec -n test -- ./xdp_loader -d veth0 -F --progsec xdp_pass
$ t load -n test -- -F --progsec xdp_icmp_echo
$ t exec -n test -- ./xdp-loader load --prog-name xdp_pass_func veth0 xdp_prog_kern.o
$ t load -n test -- --prog-name xdp_icmp_echo_func xdp_prog_kern.o
Copy link
Member

Choose a reason for hiding this comment

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

There are three invocations of xdp_loader at the end of the README file as well. Let's include those while you're fixing things up :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your feedback.
updated README.

Signed-off-by: subaoon <subaru.fukuda@gmail.com>
@subaroon subaroon requested a review from tohojo May 18, 2024 18:58
@tohojo tohojo merged commit 717f254 into xdp-project:master May 21, 2024
1 check passed
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.

None yet

2 participants