]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe643b697f9f21643a8bcd34989fdb1b17936991
tree5cce61602cd014edaa7e1d6f2e8a718509f9b579
parent14ddff72d8baed0cc4c2bd55093d9b859f86f5b0
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