ofproto-dpif-xlate: Fix recirculation for resubmit to current table.
authorBen Pfaff <blp@ovn.org>
Fri, 22 Jan 2016 23:58:55 +0000 (15:58 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 25 Jan 2016 19:20:08 +0000 (11:20 -0800)
commit2a59a351ab9e10800993cc9f16e2b3429bd0c206
tree9f7fcc90dddefa0867857a96e938e532fd333bcf
parent66cd712162a9ec802f56c74b1ebf9464bd0a7bd7
ofproto-dpif-xlate: Fix recirculation for resubmit to current table.

When recirculation defers actions for processing later, it decides
based on the actions being saved whether it needs to record the table
and cookie from which they originated.  Until now, it was thought that
this was only important for actions that send packets to the controller
(because those actions send the table ID and cookie).  This overlooked
a special case of the "resubmit" action which also depends on the
current table ID, which meant that this special case malfunctioned if
it came after recirculation.  This commit fixes the problem, and adds
a test.

Found while testing another feature under development.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
ofproto/ofproto-dpif-xlate.c
tests/ofproto-dpif.at