openvswitch: refactor do_output() to move NULL check out of fast path
authorAndy Zhou <azhou@nicira.com>
Mon, 8 Sep 2014 07:35:02 +0000 (00:35 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 6 Nov 2014 07:52:34 +0000 (23:52 -0800)
commit738967b8bf57e582db1a23ce773c36fefd4b7d37
treeb8a6a56e9eaa280fc10371002bb6d8fef790ab04
parent426cda5cc177301f9c196f3a9b6a1287051ba599
openvswitch: refactor do_output() to move NULL check out of fast path

skb_clone() NULL check is implemented in do_output(), as past of the
common (fast) path. Refactoring so that NULL check is done in the
slow path, immediately after skb_clone() is called.

Besides optimization, this change also improves code readability by
making the skb_clone() NULL check consistent within OVS datapath
module.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
net/openvswitch/actions.c