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