X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftable.h;h=8cbcfb7a6d0880d7d4013748923e88b47e04cd20;hb=57d52057650716ee354ebbe588d2a884ccabc81f;hp=c47e1e60c803814cfe7dd70e47b43024d6f9a6d1;hpb=4f546834ac37ff964f732e12c3abbcb16f7570e2;p=openvswitch diff --git a/datapath/table.h b/datapath/table.h index c47e1e60..8cbcfb7a 100644 --- a/datapath/table.h +++ b/datapath/table.h @@ -8,6 +8,7 @@ struct sw_flow; struct sw_flow_key; +struct ofp_action; struct datapath; /* Table statistics. */ @@ -54,6 +55,11 @@ 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'. Returns the + * number of flows that were modified. */ + int (*modify)(struct sw_table *table, const struct sw_flow_key *key, + const struct ofp_action *actions, int n_actions); + /* Deletes from 'table' any and all flows that match 'key' from * 'table'. If 'strict' set, wildcards and priority must match. * Returns the number of flows that were deleted. */