Added OFPFC_MODIFY_STRICT flow mod command.
[openvswitch] / datapath / chain.h
index 42e2cb774730288a37318f7ebc32fcc76404364d..a7d044eee612273fc338f146b20a7b05bd36d75f 100644 (file)
@@ -5,6 +5,7 @@
 
 struct sw_flow;
 struct sw_flow_key;
+struct ofp_action;
 struct datapath;
 
 
@@ -18,14 +19,20 @@ struct sw_chain {
        struct sw_table *tables[CHAIN_MAX_TABLES];
 
        struct datapath *dp;
+       struct module *owner;
 };
 
 struct sw_chain *chain_create(struct datapath *);
 struct sw_flow *chain_lookup(struct sw_chain *, const struct sw_flow_key *);
 int chain_insert(struct sw_chain *, struct sw_flow *);
+int chain_modify(struct sw_chain *, const struct sw_flow_key *, 
+               uint16_t, int, const struct ofp_action *, int);
 int chain_delete(struct sw_chain *, const struct sw_flow_key *, uint16_t, int);
 int chain_timeout(struct sw_chain *);
 void chain_destroy(struct sw_chain *);
-void chain_print_stats(struct sw_chain *);
+
+int chain_set_hw_hook(struct sw_table *(*create_hw_table)(void),
+                     struct module *owner);
+void chain_clear_hw_hook(void);
 
 #endif /* chain.h */