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
init.sh,loader: load overlay programs in Go #24876
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently I haven't added any tests as this mostly reuses existing infrastructure for loading datapath programs.
a07ccf8
to
24b2a2e
Compare
/test |
24b2a2e
to
f9f8cd4
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Left a few comments, should be good to go after that.
With this commit we remove code from init.sh that compiles and loads programs from bpf_overlay.c. Without it init.sh isn't responsible for loading bpf programs anymore, therefore none of the remaining commands should depend on ciliums iproute2 fork. Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
f9f8cd4
to
9d0eef4
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
MCPU=${20} | ||
NR_CPUS=${21} | ||
# MCPU=${20} | ||
# NR_CPUS=${21} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we just remove all of these and their corresponding Go code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been doing it this way since we still need to backport some (but not all) init.sh changes like the socketlb downgrade code, and we don't want to cause unnecessary churn. For example, removing LIB
would cause all of these to be re-numbered, which will cause pain during backports.
Fixes: #20699