ofp-actions: Implement writing to metadata field
authorJoe Stringer <joe@wand.net.nz>
Thu, 18 Oct 2012 17:37:37 +0000 (02:37 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Oct 2012 19:44:54 +0000 (12:44 -0700)
commit4cceacb94cfc1d75a961d3d746d2ae369c397ae5
tree38ce3acbb61fe46c941bc3b3edc02fdf48e3e6ef
parent9908606290852fc4d29132c843d9f17938cce7d8
ofp-actions: Implement writing to metadata field

In OpenFlow 1.1, we add support for OFPIT_WRITE_METADATA. This allows us to
write to the metadata field. Internally it is represented using ofpact_metadata.

We introduce NXAST_WRITE_METADATA to handle writing to the metadata field in
OpenFlow 1.0+. This structure reflects OFPIT_WRITE_METADATA.

When writing out the structure to OpenFlow 1.1, it uses the OFPIT_WRITE_METADATA
instruction only, and not the new NXAST action (which would be redundant).

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
NEWS
include/openflow/nicira-ext.h
lib/ofp-actions.c
lib/ofp-actions.h
lib/ofp-parse.c
lib/ofp-util.def
lib/ofp-util.h
ofproto/ofproto-dpif.c
tests/ofp-actions.at
utilities/ovs-ofctl.8.in