4 #include <linux/types.h>
12 #define TABLE_LINEAR_MAX_FLOWS 100
13 #define TABLE_HASH_MAX_FLOWS 65536
15 /* Set of tables chained together in sequence from cheap to expensive. */
16 #define CHAIN_MAX_TABLES 4
19 struct sw_table *tables[CHAIN_MAX_TABLES];
25 struct sw_chain *chain_create(struct datapath *);
26 struct sw_flow *chain_lookup(struct sw_chain *, const struct sw_flow_key *);
27 int chain_insert(struct sw_chain *, struct sw_flow *);
28 int chain_modify(struct sw_chain *, const struct sw_flow_key *,
29 const struct ofp_action *, int);
30 int chain_delete(struct sw_chain *, const struct sw_flow_key *, uint16_t, int);
31 int chain_timeout(struct sw_chain *);
32 void chain_destroy(struct sw_chain *);
34 int chain_set_hw_hook(struct sw_table *(*create_hw_table)(void),
35 struct module *owner);
36 void chain_clear_hw_hook(void);