-
Notifications
You must be signed in to change notification settings - Fork 370
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
Avoid redundant Openflow messages when syncing an updated group to OVS #4160
Avoid redundant Openflow messages when syncing an updated group to OVS #4160
Conversation
Fix antrea-io#4159 This PR fix the issue by appending buckets directly in `Done()` in pkg/ovs/openflow/ofctrl_group.go instead of calling `AddBuckets` method of `Group` defined in the ofnet which sends an Openflow message to install the group. Signed-off-by: Hongliang Liu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4160 +/- ##
==========================================
+ Coverage 56.38% 65.75% +9.37%
==========================================
Files 417 303 -114
Lines 60811 46531 -14280
==========================================
- Hits 34286 30596 -3690
+ Misses 23743 13584 -10159
+ Partials 2782 2351 -431
*This pull request uses carry forward flags. Click here to find out more.
|
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
/test-all |
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
Since the original code causes great unnecessary overhead when used in large scale, I would suggest to backport the fix. |
Yes, do we need to backport this to earlier versions? Like the versions before v1.0? @tnqn |
@hongliangl please backport to release 1.5 and later. |
Done. |
antrea-io#4160) Fix antrea-io#4159 This PR fix the issue by appending buckets directly in `Done()` in pkg/ovs/openflow/ofctrl_group.go instead of calling `AddBuckets` method of `Group` defined in the ofnet which sends an Openflow message to install the group. Signed-off-by: Hongliang Liu <[email protected]>
Fixes: #4159
This PR fixes the issue by appending buckets directly in
Done()
inpkg/ovs/openflow/ofctrl_group.go instead of calling
AddBuckets
methodof
Group
defined in the ofnet which sends an Openflow message to installthe group.
Signed-off-by: Hongliang Liu [email protected]