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.
ofproto-dpif: Use a regular ref instead of try_ref for rule translation.
Until now, flow translation has had to use try_ref to take a reference on a rule, because a competing thread might have released the last reference and done an RCU-postponed deletion. Since classifier versioning was introduced, however, the release of the last reference is itself RCU-postponed, which means that it is always safe to take the reference directly. Changing try_ref to ref means that taking a reference can't fail, which allows the caller to take a reference in cases where the need to take a reference was previously passed along a call chain, which simplifies some code. Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Jarno Rajahalme <[email protected]>
- Loading branch information
Showing
3 changed files
with
13 additions
and
40 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