2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

lib/classifier: Use cmap.

Use cmap instead of hmap & hindex in classifier.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
This commit is contained in:
Jarno Rajahalme
2014-07-11 02:29:07 -07:00
parent 0791315e4d
commit f2c214029e
3 changed files with 112 additions and 95 deletions

View File

@@ -213,6 +213,7 @@
* The classifier may safely be accessed by many reader threads concurrently or
* by a single writer. */
#include "cmap.h"
#include "fat-rwlock.h"
#include "match.h"
#include "meta-flow.h"
@@ -308,6 +309,8 @@ struct cls_cursor {
const struct cls_classifier *cls;
const struct cls_subtable *subtable;
const struct cls_rule *target;
struct cmap_cursor subtables;
struct cmap_cursor rules;
};
void cls_cursor_init(struct cls_cursor *cursor, const struct classifier *cls,