flow_table.h (6b798d70d07a38e9ba0a32316f76495f9dcfc343) | flow_table.h (12eb18f7115884b0c1513dda31b0051121116b3a) |
---|---|
1/* 2 * Copyright (c) 2007-2013 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 47 unchanged lines hidden (view full) --- 56 57int ovs_flow_init(void); 58void ovs_flow_exit(void); 59 60struct sw_flow *ovs_flow_alloc(void); 61void ovs_flow_free(struct sw_flow *, bool deferred); 62 63int ovs_flow_tbl_init(struct flow_table *); | 1/* 2 * Copyright (c) 2007-2013 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 47 unchanged lines hidden (view full) --- 56 57int ovs_flow_init(void); 58void ovs_flow_exit(void); 59 60struct sw_flow *ovs_flow_alloc(void); 61void ovs_flow_free(struct sw_flow *, bool deferred); 62 63int ovs_flow_tbl_init(struct flow_table *); |
64int ovs_flow_tbl_count(struct flow_table *table); | 64int ovs_flow_tbl_count(const struct flow_table *table); |
65void ovs_flow_tbl_destroy(struct flow_table *table); 66int ovs_flow_tbl_flush(struct flow_table *flow_table); 67 68int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, | 65void ovs_flow_tbl_destroy(struct flow_table *table); 66int ovs_flow_tbl_flush(struct flow_table *flow_table); 67 68int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, |
69 struct sw_flow_mask *mask); | 69 const struct sw_flow_mask *mask); |
70void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); 71int ovs_flow_tbl_num_masks(const struct flow_table *table); 72struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, 73 u32 *bucket, u32 *idx); 74struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *, 75 const struct sw_flow_key *, 76 u32 *n_mask_hit); 77struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, 78 const struct sw_flow_key *); 79struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl, | 70void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); 71int ovs_flow_tbl_num_masks(const struct flow_table *table); 72struct sw_flow *ovs_flow_tbl_dump_next(struct table_instance *table, 73 u32 *bucket, u32 *idx); 74struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *, 75 const struct sw_flow_key *, 76 u32 *n_mask_hit); 77struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, 78 const struct sw_flow_key *); 79struct sw_flow *ovs_flow_tbl_lookup_exact(struct flow_table *tbl, |
80 struct sw_flow_match *match); | 80 const struct sw_flow_match *match); |
81bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, | 81bool ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, |
82 struct sw_flow_match *match); | 82 const struct sw_flow_match *match); |
83 84void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src, 85 const struct sw_flow_mask *mask); 86#endif /* flow_table.h */ | 83 84void ovs_flow_mask_key(struct sw_flow_key *dst, const struct sw_flow_key *src, 85 const struct sw_flow_mask *mask); 86#endif /* flow_table.h */ |