-
Notifications
You must be signed in to change notification settings - Fork 164
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
Disable iptables for L2-only traffic when everything is allowed by ACLs #4437
Conversation
I'm going to ignore yetus suggestions, |
allowRule := true | ||
for _, action := range ace.Actions { | ||
if action.Drop { | ||
hasDropRule = true |
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.
Isn't it enough to mark that iptables are necessary in this case? I'm still trying to figure out why we should continue with the other checks after that.
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.
I have rewrote and split the function to avoid unnecessary checks.
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.
In general, it looks good to me.
Avoid using iptables for L2-forwaded traffic if ACLs allow everything (without rate limiting) and flow logging is disabled. Otherwise, unnecessary packet processing steps are added which reduce network performance significantly. In NFV use cases, filtering and flow logging are typically handled by applications (VNFs), so EVE should only focus on providing efficient virtual wiring. Signed-off-by: Milan Lenco <milan@zededa.com>
5b4730f
to
898472b
Compare
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
As I remember seeing all the Eden tests green, I consider the PR ready to be merged. |
Avoid using iptables for L2-forwaded (application) traffic if ACLs allow everything (without rate limiting) and flow logging is disabled. Otherwise, unnecessary packet processing steps are added which reduce network performance significantly.
In NFV use cases, filtering and flow logging/monitoring are typically handled by applications (VNFs), so EVE should only focus on providing efficient virtual wiring.
This PR is part of a series of network performance optimizations coming into EVE, see documentation (will be submitted in a separate PR)