classifier: Do not insert duplicate rules in indices.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 22:47:03 +0000 (14:47 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 23:55:44 +0000 (15:55 -0800)
commitf47eef15b78a642659e019412125d6c2775acb84
tree9d025eaf6e62a7fc7b39bd11db23b36c553f9d9c
parentd07ac93e1e154b8a5c031ed2bad97ca8b95d7fc4
classifier: Do not insert duplicate rules in indices.

There is no point in adding duplicate information into prefix tries.

Also, since the lower-priority duplicate rules are not visible to
lookups, they do not need to be in staged lookup indices directly
either (the head rule is).

Finally, now that cmap operations return the number of elements in the
cmap, subtable's 'n_rules' member is not needed any more.

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