mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
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>
This commit is contained in:
@@ -1080,9 +1080,10 @@ dpif_flow_del(struct dpif *dpif,
|
||||
* This function always successfully returns a dpif_flow_dump. Error
|
||||
* reporting is deferred to dpif_flow_dump_destroy(). */
|
||||
struct dpif_flow_dump *
|
||||
dpif_flow_dump_create(const struct dpif *dpif, bool terse, char *type)
|
||||
dpif_flow_dump_create(const struct dpif *dpif, bool terse,
|
||||
struct dpif_flow_dump_types *types)
|
||||
{
|
||||
return dpif->dpif_class->flow_dump_create(dpif, terse, type);
|
||||
return dpif->dpif_class->flow_dump_create(dpif, terse, types);
|
||||
}
|
||||
|
||||
/* Destroys 'dump', which must have been created with dpif_flow_dump_create().
|
||||
|
||||
Reference in New Issue
Block a user