tests/test-classifier: Properly use ovsrcu_postpone.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 29 Oct 2014 16:59:57 +0000 (09:59 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 29 Oct 2014 16:59:57 +0000 (09:59 -0700)
commit42767cce7247bf609ab4a06bcbb3cdc480776cc2
tree4578ecdaded24ed73214e02d56ef20b8ea26daae
parent9f22b0cfe0feb9cfeab3b776c7b372b0b452beb5
tests/test-classifier: Properly use ovsrcu_postpone.

Following patches add stricter checks of RCU memory management of
rules removed from a classifier.  This patch properly postpones
freeing of 'struct cls_rule's that have been removed from a
classifier.

Also remove all the rules from classifier before destructing it in
test_rule_replacement().

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