lib/flow: Skip minimask value checks.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 20 Dec 2013 16:16:31 +0000 (08:16 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 20 Dec 2013 16:16:31 +0000 (08:16 -0800)
commit83916319a914a4111cabf52a115368ebf5320123
treeb2ad5e2faa77eef82197146147f31806da2f476c
parent15155807de9fd3e50f095494a694257e088555fe
lib/flow: Skip minimask value checks.

We allow zero 'values' in a miniflow for it to have the same map
as the corresponding minimask.  Minimasks themselves never have
zero data values, though.  Document this and optimize the code
accordingly.

v2:
- Made miniflow_get_map_in_range() to return data offset instead of
  a pointer via the last parameter.
- Simplified minimatch_hash_in_range() by removing pointer arithmetic.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/flow.c
lib/flow.h
lib/match.c