ofp-actions: enforce valid range for table_id in goto_table instruction
authorJing Ai <jinga@google.com>
Wed, 5 Jun 2013 20:18:09 +0000 (13:18 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Jun 2013 20:34:25 +0000 (13:34 -0700)
commitbff7eeb648a03598c57ac9a8288132379640cb2c
tree2a9ce8507a011c3142463fe58e0e6fd8574c683f
parent084c3bb43405af722c638ccb329e507c436f7c56
ofp-actions: enforce valid range for table_id in goto_table instruction

Found a bug that OVS allows goto_table_id to be smaller than (or equal to)
the current table id where the flow resides. It potentially creates an
infinite loop when composing actions for a packet. To fix it, we just let
OVS returns an error message to prevent such flow to be programmed.

Signed-off-by: Jing Ai <jinga@google.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/ofp-actions.c
lib/ofp-actions.h
lib/ofp-util.c
tests/ofp-actions.at
utilities/ovs-ofctl.c