You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #17313 from danwinship/speed-up-ovs-healthcheck
Automatic merge from submit-queue.
Trivial fix to do fewer allocations in OVS healthcheck
Make `ovsController.AlreadySetUp()` scan the flows in reverse order; the flow we're looking for is in the highest-numbered table, and `ovs-ofctl dump-flows` returns the flows sorted by table number, so if we parse them in forward order, we'll end up unnecessarily parsing every single flow, while parsing them in reverse means we only parse one.
(Also stop parsing further flows once we found the one we were looking for, even if it has the wrong value.)
Fixes#17312
(We can also make improvements to ParseFlow itself later, but this just seemed like the simplest fix for the immediate problem.)
0 commit comments