aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_nat_sip.c
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2013-08-27 13:02:21 -0700
committerJesse Gross <jesse@nicira.com>2013-08-27 13:13:09 -0700
commit5828cd9a68873df1340b420371c02c47647878fb (patch)
treef32f417eecf4eab1f7a780b0191f4a1b0b0a9f1d /net/netfilter/nf_nat_sip.c
parentopenvswitch: Rename key_len to key_end (diff)
downloadlinux-dev-5828cd9a68873df1340b420371c02c47647878fb.tar.xz
linux-dev-5828cd9a68873df1340b420371c02c47647878fb.zip
openvswitch: 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@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/netfilter/nf_nat_sip.c')
0 files changed, 0 insertions, 0 deletions