diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-07-11 02:29:08 -0700 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-07-11 04:19:30 -0700 |
commit | f358a2cb2e545bd3ec3390892477441797f9a351 (patch) | |
tree | 288dfcd9734dfb9dee9d450ef0c24f3df30a1bc2 /lib/classifier.h | |
parent | e65413ab8dfb23afcdada8c98e70d9208e4f3d5d (diff) | |
download | openvswitch-f358a2cb2e545bd3ec3390892477441797f9a351.tar.gz |
lib/classifier: RCUify prefix trie code.
cls_set_prefix_fields() now synchronizes explicitly with the readers,
waiting them to finish using the old configuration before changing to
the new configuration.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Diffstat (limited to 'lib/classifier.h')
-rw-r--r-- | lib/classifier.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classifier.h b/lib/classifier.h index ee39a8162..224d5bbbd 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -268,7 +268,7 @@ bool cls_rule_is_loose_match(const struct cls_rule *rule, void classifier_init(struct classifier *cls, const uint8_t *flow_segments); void classifier_destroy(struct classifier *); -void classifier_set_prefix_fields(struct classifier *cls, +bool classifier_set_prefix_fields(struct classifier *cls, const enum mf_field_id *trie_fields, unsigned int n_trie_fields) OVS_REQ_WRLOCK(cls->rwlock); |