lib: Keep track of usable protocols while parsing.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 21 Aug 2013 01:41:45 +0000 (18:41 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 Aug 2013 04:58:55 +0000 (21:58 -0700)
commitdb0b6c2913dfda237f07881b059ba267f3388600
tree5358254ea796cd55e14c6a811966faf2ba2ba46d
parent89454bf477d1dc95357792677ccbd4d483ab42d8
lib: Keep track of usable protocols while parsing.

Keep track of usable protocols while parsing actions and matches,
rather than checking for them afterwards.  This fixes silently discarded
meter and goto table instructions when not explicitly specifying the
protocol to use.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
12 files changed:
lib/learning-switch.c
lib/learning-switch.h
lib/meta-flow.c
lib/meta-flow.h
lib/ofp-parse.c
lib/ofp-parse.h
lib/ofp-util.c
lib/ofp-util.h
tests/learn.at
tests/ovs-ofctl.at
utilities/ovs-controller.c
utilities/ovs-ofctl.c