classifier: Remove internal mutex.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 23:58:09 +0000 (15:58 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 23:58:09 +0000 (15:58 -0800)
commitfccd7c092e09ce9767d34436bf9c70302c87c5f5
treec8f4b214dcc276199be878ce9c4b1c603cec0a8f
parentde4ad4a21569fa63912be87c1b2e858d888dc1b0
classifier: Remove internal mutex.

Almost all classifier users already exclude concurrent modifications,
or are single-threaded, hence the classifier internal mutex can be
removed.  Due to this change, ovs-router.c and tnl-ports.c need new
mutexes, which are added.

As noted by Ben in review, ovs_router_flush() should also free the
entries it removes from the classifier.  It now calls
ovsrcu_postpone() to that effect.

Suggested-by: Ben Pfaff <blp@nicira.com>
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
lib/ovs-router.c
lib/tnl-ports.c
tests/test-classifier.c