ofproto-dpif: Ditch SLOW_MATCH slow path reason.
authorEthan Jackson <ethan@nicira.com>
Fri, 17 May 2013 20:39:03 +0000 (13:39 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 29 May 2013 20:15:15 +0000 (13:15 -0700)
commitba33dd0354e9accf909d8ccd920b319d4d476112
treed1bc75341b588cafb38b015311bd3da9b823dde7
parentdf35ec51b3ae4981746945b824fd375a2d74539a
ofproto-dpif: Ditch SLOW_MATCH slow path reason.

Before this patch, datapath keys with ODP_FIT_TO_LITTLE, would be
assigned subfacets and installed in the kernel with a SLOW_MATCH
slow path reason.  This is problematic, because these flow keys
can't be reliable converted into a 'struct flow' thus breaking a
fundamental assumption of ofproto-dpif.  This patch circumvents the
issue by skipping facet creation for these flows altogether.  This
approach has the added benefit of simplifying the code for future
patches.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/odp-util.c
lib/odp-util.h
ofproto/ofproto-dpif.c
tests/odp.at