diff options
author | Gavi Teitz <gavi@mellanox.com> | 2018-07-08 14:15:38 +0300 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2018-07-25 18:16:27 +0200 |
commit | ab15e70eb5878b46f8f84da940ffc915b6d74cad (patch) | |
tree | 4aa609700e3501c5762783d098a6f32a0398df8a /lib/dpif-provider.h | |
parent | f9885dc594c1ac93f4f1c1b4cc215c1f20d587ec (diff) | |
download | openvswitch-ab15e70eb5878b46f8f84da940ffc915b6d74cad.tar.gz |
dpctl: Expand the flow dump type filter
Added new types to the flow dump filter, and allowed multiple filter
types to be passed at once, as a comma separated list. The new types
added are:
* tc - specifies flows handled by the tc dp
* non-offloaded - specifies flows not offloaded to the HW
* all - specifies flows of all types
The type list is now fully parsed by the dpctl, and a new struct was
added to dpif which enables dpctl to define which types of dumps to
provide, rather than passing the type string and having dpif parse it.
Signed-off-by: Gavi Teitz <gavi@mellanox.com>
Acked-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/dpif-provider.h')
-rw-r--r-- | lib/dpif-provider.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h index 62b3598ac..0d2075bf4 100644 --- a/lib/dpif-provider.h +++ b/lib/dpif-provider.h @@ -284,9 +284,10 @@ struct dpif_class { * If 'terse' is true, then only UID and statistics will * be returned in the dump. Otherwise, all fields will be returned. * - * If 'type' isn't null, dumps only the flows of the given type. */ + * If 'types' isn't null, dumps only the flows of the passed types. */ struct dpif_flow_dump *(*flow_dump_create)(const struct dpif *dpif, - bool terse, char *type); + bool terse, + struct dpif_flow_dump_types *types); int (*flow_dump_destroy)(struct dpif_flow_dump *dump); struct dpif_flow_dump_thread *(*flow_dump_thread_create)( |