openvswitch: Factor out allocation and verification of actions.
authorJesse Gross <jesse@nicira.com>
Fri, 3 Oct 2014 22:35:32 +0000 (15:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 04:32:20 +0000 (00:32 -0400)
commit6b205b2ca17e88ef5e10451b720056b790cc63a5
treebd94053b6d8bad4ed2852daf8254a3ea45200ecb
parentf0b128c1e2cc33ad104daf0f51a51e34f7763c5f
openvswitch: Factor out allocation and verification of actions.

As the size of the flow key grows, it can put some pressure on the
stack. This is particularly true in ovs_flow_cmd_set(), which needs several
copies of the key on the stack. One of those uses is logically separate,
so this factors it out to reduce stack pressure and improve readibility.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c