openvswitch: Refactor recirc key allocation.
authorandy zhou <azhou@ovn.org>
Mon, 20 Mar 2017 23:32:28 +0000 (16:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 18:28:35 +0000 (11:28 -0700)
commit4572ef52a00bf671fa0fb5a85ee75b1af30cc18b
tree5f9a78449d6d6336dbaa7404696efb155fdc1662
parent47c697aa2d07f4bf258e7ad53cdb6c77c339b843
openvswitch: Refactor recirc key allocation.

The logic of allocating and copy key for each 'exec_actions_level'
was specific to execute_recirc(). However, future patches will reuse
as well.  Refactor the logic into its own function clone_key().

Signed-off-by: Andy Zhou <azhou@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/actions.c