[ovs-git] Open vSwitch: datapath: optimize flow compare and mask functions (master)

dev at openvswitch.org dev at openvswitch.org
Tue Aug 27 19:53:29 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  c2dd5e999fc8e172be3a167c71e587bb50da7d97 (commit)
      from  78cef7fdf84169a4031696f7bc00aa11ca5c1392 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c2dd5e999fc8e172be3a167c71e587bb50da7d97
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c2dd5e999fc8e172be3a167c71e587bb50da7d97
Author: Andy Zhou <azhou at nicira.com>
		
datapath: optimize flow compare and mask functions
		
Make sure the sw_flow_key structure and valid mask boundaries are always
machine word aligned. Optimize the flow compare and mask operations
using machine word size operations. This patch improves throughput on
average by 15% when CPU is the bottleneck of forwarding packets.

This patch is inspired by ideas and code from a patch submitted by Peter
Klausler titled "replace memcmp() with specialized comparator".
However, The original patch only optimizes for architectures
support unaligned machine word access. This patch optimizes for all
architectures.

Signed-off-by: Andy Zhou <azhou at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/flow.c |   64 +++++++++++++++++++++++++++++++++++++------------------
 datapath/flow.h |   19 +----------------
 2 files changed, 44 insertions(+), 39 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list