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-xlate: Make xlate_actions() caller supply action buffer.
Until now, struct xlate_out has embedded an ofpbuf for actions and a large stub for it, which xlate_actions() filled in during the flow translation process. This commit removes the embedded ofpbuf and stub, instead putting a pointer to an ofpbuf into struct xlate_in, for a caller to fill in with a pointer to its own structure if desired. (If none is supplied, xlate_actions() uses an internal scratch buffer and destroys it before returning.) This commit eliminates the last large data structure from struct xlate_out, making the initialization of an entire xlate_out at the beginning of xlate_actions() now reasonable. More members will be eliminated in upcoming commits, but this is no longer essential. Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Jarno Rajahalme <[email protected]>
- Loading branch information
Showing
4 changed files
with
94 additions
and
86 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
Oops, something went wrong.