[ovs-dev] [PATCH 0/2] datapath flow key hashing performance optimization

Andrew Evans aevans at nicira.com
Sat Mar 5 03:37:45 UTC 2011

Jesse noticed that the datapath doesn't need to hash the entire struct
sw_flow_key, just the parts relevant to that flow. This patch series reorders
struct sw_flow_key to put the optional/variable parts of the flow key last, and
hashes only the portion actually used to describe the flow.

Andrew Evans (2):
  datapath: Rearrange struct sw_flow_key to put IPv4/IPv6-specific
    details last.
  datapath: Hash only the part of struct sw_flow_key populated by

 datapath/datapath.c |   15 ++--
 datapath/flow.c     |  211 +++++++++++++++++++++++++++++++--------------------
 datapath/flow.h     |   56 +++++++++-----
 datapath/tunnel.c   |    7 +-
 4 files changed, 177 insertions(+), 112 deletions(-)


More information about the dev mailing list