]> git.proxmox.com Git - mirror_ovs.git/commit
datapath: refactor do_output() to move skb_clone NULL check out of fast path
authorAndy Zhou <azhou@nicira.com>
Thu, 10 Jul 2014 07:50:26 +0000 (00:50 -0700)
committerAndy Zhou <azhou@nicira.com>
Thu, 10 Jul 2014 21:58:56 +0000 (14:58 -0700)
commitfe90efd9d69ad84c5086442b6400be9e92aa1e9e
tree223ad50fd9bff2dab1fb17d3a84520e374588869
parent15cd5a8e1d4146334d670ab712dad66b46a81145
datapath: refactor do_output() to move skb_clone 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>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/actions.c