2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpctl: Indicate if flow is offloaded when dumping flows of all types

When verbosity is requested on dump-flows (-m) indicate which flows
are offloaded.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
Paul Blakey
2017-06-13 18:03:50 +03:00
committed by Simon Horman
parent 7e8b719938
commit 4742003c74
3 changed files with 13 additions and 3 deletions

View File

@@ -1639,6 +1639,7 @@ dpif_netlink_flow_to_dpif_flow(struct dpif *dpif, struct dpif_flow *dpif_flow,
&dpif_flow->ufid);
}
dpif_netlink_flow_get_stats(datapath_flow, &dpif_flow->stats);
dpif_flow->offloaded = false;
}
/* The design is such that all threads are working together on the first dump
@@ -1721,6 +1722,9 @@ dpif_netlink_netdev_match_to_dpif_flow(struct match *match,
flow->ufid = *ufid;
flow->pmd_id = PMD_ID_NULL;
flow->offloaded = true;
return 0;
}