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.
Ukeys have a defined lifetime that starts from being created, inserted into the umaps, having the corresponding flow installed, then the flow deleted, the ukey removed from the umap, rcu-deferral of its deletion, and finally freedom. However, until now it's all been represented behind a simple boolean "flow_exists" with a bunch of implicit logic sprinkled around the accessors. This patch attempts to make the ukey lifetime a bit clearer by outlining the correct transitions and asserting that their lifetime proceeds as expected. This should improve the readability of the current code, and also make the following patch easier to reason about. Signed-off-by: Joe Stringer <[email protected]> Acked-by: Jarno Rajahalme <[email protected]>
- Loading branch information
1 parent
f3e8c44
commit 54ebeff
Showing
1 changed file
with
96 additions
and
46 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