datapath: Avoid using wrong metadata for recic action.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 13 Aug 2014 23:08:02 +0000 (16:08 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 14 Aug 2014 19:22:10 +0000 (12:22 -0700)
commitbdfc1cfca7ec395c1ac1765914dc5b8f54a4f4c0
tree21b78d9c42615284dc2a8078705d0e791bc6a203
parente58ba93dfaa5455f667af4b99ee7f53b8520157c
datapath: Avoid using wrong metadata for recic action.

Recirc action needs to extract flow key from packet, it uses tun_info
from OVS_CB for setting tunnel meta data in flow key. But tun_info
can be overwritten by tunnel send action. This would result in wrong
flow key for the recirculation.
Following patch copies flow-key meta data from OVS_CB packet key
itself thus avoids this bug.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
datapath/actions.c
datapath/flow.c
datapath/flow.h