datapath: Factor out allocation and verification of actions.
authorJesse Gross <jesse@nicira.com>
Fri, 6 Jun 2014 01:36:19 +0000 (18:36 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 20 Jun 2014 01:33:28 +0000 (18:33 -0700)
commit1d2a1b5f5252e4c6ce8bbf8d91ca27aba52496e6
treee15801b66d709027522e438dfd3fe7d28e60d21e
parent94872594b79d1a4a6cfb9434b1c1d1d506b3c57d
datapath: 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>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c