ofproto-dpif-xlate: Fix revalidation in execute_controller_action().
authorDaniele Di Proietto <diproiettod@vmware.com>
Fri, 4 Dec 2015 22:04:26 +0000 (14:04 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 11 Dec 2015 01:38:23 +0000 (17:38 -0800)
commitb476e2f21b1f20bd0d24c0522e4d745603599582
tree1b9f717557b28700a74c2a75ede4fb7d7c92ac96
parent4d8f90b1b10c5c7b8cfaeeb0a2dcfcb2f2c5ff7c
ofproto-dpif-xlate: Fix revalidation in execute_controller_action().

If there's no actual packet (e.g. during revalidation),
execute_controller_action() exits right away, without calling
xlate_commit_actions().

xlate_commit_actions() might have an influence on slow_path reason
(which is included in the generated ODP actions), meaning that the
revalidation will not generate the same actions than the original
translation.

Fix the problem by making execute_controller_action() call
xlate_commit_actions() even without a packet.
ofproto/ofproto-dpif-xlate.c