Re: [net-next] openvswitch: Simplify do_execute_actions().

2017-01-27 Thread Andy Zhou
On Fri, Jan 27, 2017 at 12:42 PM, Pravin Shelar wrote: > On Wed, Jan 25, 2017 at 9:24 PM, Andy Zhou wrote: >> 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. Ho

Re: [net-next] openvswitch: Simplify do_execute_actions().

2017-01-27 Thread Pravin Shelar
On Wed, Jan 25, 2017 at 9:24 PM, Andy Zhou wrote: > 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 necessar

Re: [net-next] openvswitch: Simplify do_execute_actions().

2017-01-26 Thread Jarno Rajahalme
Nice clean-up. Acked-by: Jarno Rajahalme > On Jan 25, 2017, at 9:24 PM, Andy Zhou wrote: > > 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 > imp

[net-next] openvswitch: Simplify do_execute_actions().

2017-01-25 Thread Andy Zhou
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 Zh