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: Merge do_add_flow() and oftable_insert_rule() into add_flow().
Each of these functions had only a single caller, and breaking them out as separate functions didn't seem to many the code clearer. I added a new function meter_insert_rule(): oftable_insert_rule() had used members of struct meter directly, which worked because it was after the definition of struct meter. So there was a choice to either move the definition of struct meter earlier or add a helper function; I chose the latter. Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Thomas Graf <[email protected]>
- Loading branch information
Showing
1 changed file
with
31 additions
and
55 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