Fix table checking for goto table instruction.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Fri, 28 Jun 2013 16:44:03 +0000 (19:44 +0300)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jun 2013 17:22:26 +0000 (10:22 -0700)
commite3b5693319c461a5909507b9ede57db326c07df2
tree274e9cd0feb197a5a0582b556c2580db2629a7fc
parent340c7bb2b9565b07de7c105d7fae298be908d138
Fix table checking for goto table instruction.

Usually the table id in flow mods is 255, which means that goto table
instruction cannot be checked before the table is picked (for flow add),
or the rules to be modified are found (flow mod).

Move goto table checking from decode (ofp-util) to actions checking
(ofp-actions), and postpone the action checking until the table in
which the actions are added is known.

This fixes OFPBRC_BAD_TABLE_ID errors for flow adds that specify the table
id as 255, and have a goto table instruction.

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c
lib/ofp-actions.h
lib/ofp-parse.c
lib/ofp-util.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
utilities/ovs-ofctl.c