diff options
author | Ben Pfaff <blp@nicira.com> | 2012-04-17 21:52:10 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-04-18 20:28:12 -0700 |
commit | b99d3ceeedd2c5533c13f9794616fc6d9c49c0de (patch) | |
tree | 3f3043c6fd8a38cb78e1461e51fdf6047450bf75 /lib/dpif.h | |
parent | 530a1d915be60e1b48f91af951f34aee53013b09 (diff) |
ofproto-dpif: Batch flow uninstallations due to expiration.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -177,7 +177,8 @@ int dpif_execute(struct dpif *, enum dpif_op_type { DPIF_OP_FLOW_PUT = 1, - DPIF_OP_EXECUTE + DPIF_OP_FLOW_DEL, + DPIF_OP_EXECUTE, }; struct dpif_flow_put { @@ -192,6 +193,15 @@ struct dpif_flow_put { struct dpif_flow_stats *stats; /* Optional flow statistics. */ }; +struct dpif_flow_del { + /* Input. */ + const struct nlattr *key; /* Flow to delete. */ + size_t key_len; /* Length of 'key' in bytes. */ + + /* Output. */ + struct dpif_flow_stats *stats; /* Optional flow statistics. */ +}; + struct dpif_execute { const struct nlattr *key; /* Partial flow key (only for metadata). */ size_t key_len; /* Length of 'key' in bytes. */ @@ -205,6 +215,7 @@ struct dpif_op { int error; union { struct dpif_flow_put flow_put; + struct dpif_flow_del flow_del; struct dpif_execute execute; } u; }; |