diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-10-04 03:17:42 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2013-10-04 03:18:30 -0400 |
commit | 618ed0c805b64c820279f50732110ab873221c3b (patch) | |
tree | 28af2a6cbc7d81cbc19b02fb4b9c79079a03a8ce /net/openvswitch/flow_table.h | |
parent | b637e4988c2d689bb43f943a5af0e684a4981159 (diff) |
openvswitch: Simplify mega-flow APIs.
Hides mega-flow implementation in flow_table.c rather than
datapath.c.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/flow_table.h')
-rw-r--r-- | net/openvswitch/flow_table.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/openvswitch/flow_table.h b/net/openvswitch/flow_table.h index 5d1abe566c46..4db5f78b6f81 100644 --- a/net/openvswitch/flow_table.h +++ b/net/openvswitch/flow_table.h | |||
@@ -60,10 +60,11 @@ void ovs_flow_free(struct sw_flow *, bool deferred); | |||
60 | 60 | ||
61 | int ovs_flow_tbl_init(struct flow_table *); | 61 | int ovs_flow_tbl_init(struct flow_table *); |
62 | int ovs_flow_tbl_count(struct flow_table *table); | 62 | int ovs_flow_tbl_count(struct flow_table *table); |
63 | void ovs_flow_tbl_destroy(struct flow_table *table, bool deferred); | 63 | void ovs_flow_tbl_destroy(struct flow_table *table); |
64 | int ovs_flow_tbl_flush(struct flow_table *flow_table); | 64 | int ovs_flow_tbl_flush(struct flow_table *flow_table); |
65 | 65 | ||
66 | void ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow); | 66 | int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, |
67 | struct sw_flow_mask *mask); | ||
67 | void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); | 68 | void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); |
68 | struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, | 69 | struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, |
69 | u32 *bucket, u32 *idx); | 70 | u32 *bucket, u32 *idx); |
@@ -73,13 +74,6 @@ struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, | |||
73 | bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, | 74 | bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, |
74 | struct sw_flow_match *match); | 75 | struct sw_flow_match *match); |
75 | 76 | ||
76 | struct sw_flow_mask *ovs_sw_flow_mask_alloc(void); | ||
77 | void ovs_sw_flow_mask_add_ref(struct sw_flow_mask *); | ||
78 | void ovs_sw_flow_mask_del_ref(struct sw_flow_mask *, bool deferred); | ||
79 | void ovs_sw_flow_mask_insert(struct flow_table *, struct sw_flow_mask *); | ||
80 | struct sw_flow_mask *ovs_sw_flow_mask_find(const struct flow_table *, | ||
81 | const struct sw_flow_mask *); | ||
82 | void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src, | 77 | void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src, |
83 | const struct sw_flow_mask *mask); | 78 | const struct sw_flow_mask *mask); |
84 | |||
85 | #endif /* flow_table.h */ | 79 | #endif /* flow_table.h */ |