forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-controller: Only process lflows for local datapaths.
Previously, ovn-controller translated logical flows into OpenFlow flows for *every* logical datapath. This patch makes it so we skip doing so for the egress pipeline if the datapath is a logical switch with no logical ports bound locally. In that case, the flows have no effect. This was the code path taking the most time in a large scale OVN environment and was an easy optimization to make based on the existing local_datapaths info. In this environment, while idling, ovn-controller was taking up about 20% CPU with this patch, while other nodes were in the 40-70% range. Reported-at: https://bugs.launchpad.net/networking-ovn/+bug/1536003 Signed-off-by: Russell Bryant <[email protected]> Tested-by: Matt Mulsow <[email protected]> Acked-by: Ben Pfaff <[email protected]> Acked-By: Kyle Mestery <[email protected]>
- Loading branch information
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters