Cookies are an important part of flow descriptions and must be available to the end user.
Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktio...@arknetworks.am> --- ofproto/ofproto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index e4a1bee76..29020c42e 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -4827,6 +4827,10 @@ flow_stats_ds(struct ofproto *ofproto, struct rule *rule, struct ds *results, if (rule->table_id != 0) { ds_put_format(results, "table_id=%"PRIu8", ", rule->table_id); } + if (rule->flow_cookie != 0) { + ds_put_format(results, "cookie=0x%"PRIx64", ", + ntohll(rule->flow_cookie)); + } ds_put_format(results, "duration=%llds, ", (time_msec() - created) / 1000); ds_put_format(results, "n_packets=%"PRIu64", ", stats.n_packets); ds_put_format(results, "n_bytes=%"PRIu64", ", stats.n_bytes); -- 2.39.2 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev