diff options
author | Guoshuai Li <ligs@dtdream.com> | 2018-01-24 20:39:08 +0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-01-24 12:28:14 -0800 |
commit | ad35c0c58ed8108b6bf1e2caf96d0d0142f47d69 (patch) | |
tree | 4fa89d772e56e437c3d73201c6d6b810c3c6c02b /ovn/controller/ofctrl.h | |
parent | f789661794f418c844cb21bef86a9251b2491fc5 (diff) | |
download | openvswitch-ad35c0c58ed8108b6bf1e2caf96d0d0142f47d69.tar.gz |
ovn-controller: Add extend_table instead of group_table to expand meter.
The structure and function of the group table and meter table are similar,
refactoring code is used to extend for add the meter table.
The following function as lib: table init/destroy/clear/lookup/remove,
assign id for contents, Move the contents of desired to existing.
Signed-off-by: Guoshuai Li <ligs@dtdream.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn/controller/ofctrl.h')
-rw-r--r-- | ovn/controller/ofctrl.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ovn/controller/ofctrl.h b/ovn/controller/ofctrl.h index d83f6aec4..9b5eab1f4 100644 --- a/ovn/controller/ofctrl.h +++ b/ovn/controller/ofctrl.h @@ -23,7 +23,7 @@ #include "ovsdb-idl.h" struct controller_ctx; -struct group_table; +struct ovn_extend_table; struct hmap; struct match; struct ofpbuf; @@ -31,7 +31,7 @@ struct ovsrec_bridge; struct shash; /* Interface for OVN main loop. */ -void ofctrl_init(struct group_table *group_table); +void ofctrl_init(struct ovn_extend_table *group_table); enum mf_field_id ofctrl_run(const struct ovsrec_bridge *br_int, struct shash *pending_ct_zones); bool ofctrl_can_put(void); @@ -55,7 +55,4 @@ void ofctrl_add_flow(struct hmap *desired_flows, uint8_t table_id, void ofctrl_flow_table_clear(void); -void ovn_group_table_clear(struct group_table *group_table, - bool existing); - #endif /* ovn/ofctrl.h */ |