meta-flow: Accept NXM and OXM field names, support NXM and OXM for output.
authorBen Pfaff <blp@nicira.com>
Tue, 26 Jun 2012 17:52:34 +0000 (10:52 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jun 2012 05:02:52 +0000 (22:02 -0700)
commitb5e5143b6a808d3463b205c36d49cdd9a9a9e4c3
tree2c0fef011cbe3613d55e72ef5cb91074a17ded44
parent24016f5a45e873dd83feb41c0ca255377a6902d2
meta-flow: Accept NXM and OXM field names, support NXM and OXM for output.

This commit makes actions that accept NXM header values also accept OXM
header values and accept OXM field names where previously only NXM field
names were accepted.

This makes it possible to add new OXM fields that don't have NXM header
values, e.g. the OXM "metadata" field.

Inspired by Joe Stringer's patch:
http://openvswitch.org/pipermail/dev/2012-June/018344.html

Reported-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/meta-flow.c
lib/meta-flow.h
tests/learn.at
tests/ovs-ofctl.at