openvswitch: Refactor action alloc and copy api.
authorPravin B Shelar <pshelar@nicira.com>
Sun, 19 Oct 2014 18:19:51 +0000 (11:19 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 6 Nov 2014 07:52:35 +0000 (23:52 -0800)
commit2fdb957d634a906ae8939bff23d45968307acbf7
tree98eee0e868f2b6ff95d715d7a0cdac169d3357d4
parent41af73e9c17d5fb549fced2be97faeb4b8606fb8
openvswitch: 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>
net/openvswitch/datapath.c
net/openvswitch/flow_netlink.c
net/openvswitch/flow_netlink.h