]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovn.at
ovn: Rewrite logical action parsing and encoding library.
authorBen Pfaff <blp@ovn.org>
Mon, 15 Aug 2016 18:34:02 +0000 (11:34 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 15 Aug 2016 18:36:29 +0000 (11:36 -0700)
commitd5a76da4c227a0b8084d75b982f5e5ac4eefd06f
tree5c2a3628819f88714f06fd1663e2bc706292f19d
parent61591ad987635b3f6ae1af284073edcfcb7eff17
ovn: Rewrite logical action parsing and encoding library.

Until now, parsing logical actions and encoding them into OpenFlow has
happened in a single step.  An upcoming commit will want to examine
actions after parsing without encoding them into OpenFlow.  This commit
refactors OVN logical actions to make this possible.

The new form of the OVN action handling is closely modeled on ofp-actions
in the OVS core library.  Notable differences are that OVN actions are
always fixed-length and that individual OVN actions can have destructors
(and thus can contain pointers to data that need to be freed when the
actions are destroyed).

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
Acked-by: Justin Pettit <jpettit@ovn.org>
include/ovn/actions.h
include/ovn/expr.h
ovn/controller/lflow.c
ovn/lib/actions.c
ovn/lib/expr.c
ovn/ovn-sb.xml
tests/ovn.at
tests/test-ovn.c