forked from ovn-org/ovn
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controller: Avoid quadratic complexity for multi-chassis ports.
The processing for ports had a quadratic complexity when MTU change was involved. Avoid the unnecessary processing and do the lookup loop only once and only in case it was actually needed. In addition to the quadratic complexity the condition to do the flow recompute was wrong and this resulted for the lookup in physical_handle_flows_for_lport() to run for all ports. The performance difference is very noticeable, see the number below in a test with 800 LSPs: Before: physical_flow_output, handler for input if_status_mgr took 2072ms After: physical_flow_output, handler for input if_status_mgr took 4ms Fixes: cdd8dea ("Track interface MTU in if-status-mgr") Fixes: 7084cf4 ("Always funnel multichassis port traffic through tunnels") Signed-off-by: Ales Musil <amusil@redhat.com>
- Loading branch information
Showing
4 changed files
with
93 additions
and
43 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
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