-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Move the datapaths arrays to ovn_datapaths struct.
In the current code, many functions depends on the global datapaths arrays variables, which is convenient. However, for incremental processing framework to track dependencies properly, we should avoid using global variables and purely depends on engine inputs (and function inputs, for the functions called by engine nodes' handlers). This patch moves the datapaths arrays to a new ovn_datapaths struct, which wraps the datapaths arrays together with the corresponding datapaths hmap table, because they are in fact for the same data, and the array is just an index of the data. The variable for the size of the array is replaced by a helper function which simply reads the size of the hmap. Signed-off-by: Han Zhou <hzhou@ovn.org> Acked-by: Mark Michelson <mmichels@redhat.com>
- Loading branch information
Showing
4 changed files
with
304 additions
and
247 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
Oops, something went wrong.