diff options
| author | Andy Zhou <azhou@nicira.com> | 2014-09-08 11:35:02 +0400 |
|---|---|---|
| committer | Pravin B Shelar <pshelar@nicira.com> | 2014-11-06 10:52:34 +0300 |
| commit | 738967b8bf57e582db1a23ce773c36fefd4b7d37 (patch) | |
| tree | b8a6a56e9eaa280fc10371002bb6d8fef790ab04 /net/openvswitch/datapath.c | |
| parent | 426cda5cc177301f9c196f3a9b6a1287051ba599 (diff) | |
| download | linux-738967b8bf57e582db1a23ce773c36fefd4b7d37.tar.xz | |
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>
Diffstat (limited to 'net/openvswitch/datapath.c')
0 files changed, 0 insertions, 0 deletions
