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:10:37 +0000 (11:10 -0800)
commit83a31283dcb3d74b169c2c36df64994d9c8c964c
treea2a3d56ab214dabac2eb0bb527f14e5721c8a23f
parent2ad4971f4d6f8dcbc9223161a07e6dd7403f4c7b
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