]> 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)
commit959a7aafdd05f5a013396ee4f08afd919f28a5a4
tree5cce61602cd014edaa7e1d6f2e8a718509f9b579
parentbc98c9378e38759e11310232c0d218d95f35ecdd
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