]> git.proxmox.com Git - mirror_ovs.git/commit - lib/ofp-actions.c
ofp-actions: Pretend that OpenFlow 1.0 has instructions.
authorBen Pfaff <blp@nicira.com>
Thu, 7 Aug 2014 23:09:07 +0000 (16:09 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Aug 2014 19:47:18 +0000 (12:47 -0700)
commit8f2cded496c13307eff2d8bd0f01dee389cf6166
tree3f5e5a49e2ccb3af459c5938ca0ceaefcc00328d
parent4caacc1e7c36dca8264913689a6a880b69e52b33
ofp-actions: Pretend that OpenFlow 1.0 has instructions.

This allows callers to be more uniform, because they don't have to pick
out whether they should parse actions or instructions based on the OpenFlow
version in use.  It also allows the Write-Metadata instruction emulation
in OpenFlow 1.0 to be treated just as in OpenFlow 1.1 in the sense that
it is allowed in contexts where instructions are allowed in OpenFlow 1.1
and not elsewhere.  (The changes in the tests reflect this more accurate
treatment.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/ofp-actions.c
lib/ofp-actions.h
lib/ofp-errors.h
lib/ofp-parse.c
lib/ofp-util.c
tests/ofp-actions.at
utilities/ovs-ofctl.c