datapath: Avoid using wrong metadata for recic action.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 5 Aug 2014 20:43:45 +0000 (13:43 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 7 Aug 2014 01:03:19 +0000 (18:03 -0700)
commit7f45215aec6cefab34fef548fe464f2a361e2a6f
treede9250c661460aff9e8cf98a20a4ef5b12b45ecd
parentc135bba1a9b83fcc32a48bab3039b9626c51c03e
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
datapath/flow_netlink.c