[ovs-dev] [masking compare speed up V2] datapath: optimize flow compare and mask functions

Jesse Gross jesse at nicira.com
Tue Aug 27 19:53:49 UTC 2013


On Tue, Aug 27, 2013 at 11:21 AM, Andy Zhou <azhou at nicira.com> wrote:
> 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>

Applied, thanks!



More information about the dev mailing list