From ab15e70eb5878b46f8f84da940ffc915b6d74cad Mon Sep 17 00:00:00 2001 From: Gavi Teitz Date: Sun, 8 Jul 2018 14:15:38 +0300 Subject: 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 Acked-by: Roi Dayan Signed-off-by: Simon Horman --- lib/dpif-provider.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/dpif-provider.h') 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)( -- cgit v1.2.1