Added OFPFC_MODIFY_STRICT flow mod command.
[openvswitch] / switch / table.h
index c31ffa69be3280922cd2801c56cc1fd1c9f50927..aacaa63fd280ee118c876e5cdac2e0eb5b5aeb4c 100644 (file)
 
 struct sw_flow;
 struct sw_flow_key;
+struct ofp_action;
 struct list;
 
 /* Table statistics. */
 struct sw_table_stats {
     const char *name;            /* Human-readable name. */
+    uint32_t wildcards;          /* Bitmap of OFPFW_* wildcards that are
+                                    supported by the table. */
     unsigned int n_flows;        /* Number of active flows. */
     unsigned int max_flows;      /* Flow capacity. */
     unsigned long int n_matched; /* Number of packets that have hit. */
@@ -81,6 +84,13 @@ struct sw_table {
      * retained by the caller. */
     int (*insert)(struct sw_table *table, struct sw_flow *flow);
 
+    /* Modifies the actions in 'table' that match 'key'.  If 'strict'
+     * set, wildcards and priority must match.  Returns the number of flows 
+     * that were modified. */
+    int (*modify)(struct sw_table *table, const struct sw_flow_key *key,
+            uint16_t priority, int strict,
+            const struct ofp_action *actions, int n_actions);
+
     /* Deletes from 'table' any and all flows that match 'key' from
      * 'table'.  If 'strict' set, wildcards must match.  Returns the 
      * number of flows that were deleted. */