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
bpf: Refactoring egress gateway datapath #17868
Conversation
68ab33b
to
e76ec4c
Compare
Signed-off-by: Paul Chaignon <paul@cilium.io>
e76ec4c
to
ca13a74
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
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, thanks.
@@ -13,6 +13,7 @@ | |||
#include "lb.h" | |||
#include "common.h" | |||
#include "overloadable.h" | |||
#include "egress_policies.h" |
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.
nit: are there any policies that are not egress gw policies, that could be characterized as egress policies?
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.
SRv6 egress policies are coming 😃
Move several check from bpf_lxc into a helper function is_cluster_destination(). Signed-off-by: Paul Chaignon <paul@cilium.io>
ca13a74
to
ef858bb
Compare
As seen in https://github.com/cilium/cilium/compare/ca13a74c4d8fe856d34c3892df528215bc927cd6..ef858bbab4d78bdc111d35f73947a9c8d6dbdda6, the only change of the last push is a comment change. All tests were green before that, so not triggering again and keeping ready-to-merge label. |
Added label for backporting to v1.10 to facilitate the backport of other egress gateway fixes. |
This pull request performs just a bit of refactoring on the egress gateway's code in the datapath. This refactoring was prepared for the SRv6 work (cf. #17646) but is independent so sending it's own pull request.
See commits for details.