classifier: Simplify versioning.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 12 Jun 2015 23:12:56 +0000 (16:12 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 12 Jun 2015 23:12:56 +0000 (16:12 -0700)
commit18721c4a4d49416a0c63ca985988b000fc48f217
tree479bad2e5fd78c6c0b3b1241f151dc0a285ed48c
parentbe9d0de7a40459507b0620bc7bc352f7b6b0942d
classifier: Simplify versioning.

After all, there are some cases in which both the insertion version
and removal version of a rule need to be considered.  This makes the
cls_match a bit bigger, but makes classifier versioning much simpler
to understand.

Also, avoid using type larger than int in an enum, as it is not
portable C.

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