classifier: Pre-compute stage masks.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 25 Aug 2015 20:55:03 +0000 (13:55 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 26 Aug 2015 21:41:02 +0000 (14:41 -0700)
commitfa2fdbf8d0c1da808230ad904e94199eafddd926
tree15ca60356f1241e0aafead76db8afab5d326370a
parentdcd21433577beeb334a939e5c22fd71e9da0accc
classifier: Pre-compute stage masks.

This makes stage mask computation happen only when a subtable is
inserted and allows simplification of the main lookup function.

Classifier benchmark shows that this speeds up the classification
(with wildcards) about 5%.

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