openvswitch: Simplify do_execute_actions().
authorandy zhou <azhou@ovn.org>
Fri, 27 Jan 2017 21:45:28 +0000 (13:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 00:00:16 +0000 (19:00 -0500)
commit5b8784aaf29be20ba8d363e1124d7436d42ef9bf
tree5cce61602cd014edaa7e1d6f2e8a718509f9b579
parent6d45408db1ad87c2080cffeb7868553eec6e053b
openvswitch: Simplify do_execute_actions().

do_execute_actions() implements a worthwhile optimization: in case
an output action is the last action in an action list, skb_clone()
can be avoided by outputing the current skb. However, the
implementation is more complicated than necessary.  This patch
simplify this logic.

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