datapath: Refactor action alloc and copy api.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 7 Aug 2014 19:51:14 +0000 (12:51 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 7 Aug 2014 22:47:34 +0000 (15:47 -0700)
commitff27161e37d1b30c916501a6fccde4d45c502ab1
treebceca8c92325af25219a239120db5849de1b4450
parenta445095f0110623eaccbda1fb6937270b4dcc239
datapath: Refactor action alloc and copy api.

There are two separate API to allocate and copy actions list. Anytime
OVS needs to copy action list, it needs to call both functions.
Following patch moves action allocation to copy function to avoid
code duplication.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
datapath/datapath.c
datapath/flow_netlink.c
datapath/flow_netlink.h