summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorViacheslav Galaktionov <viacheslav.galaktionov@arknetworks.am>2023-02-21 17:02:25 +0400
committerIlya Maximets <i.maximets@ovn.org>2023-02-21 21:13:43 +0100
commitc156f9bc502a18858a4d9d6d04cae7982f341e6a (patch)
tree56382616fc12505e9adc629155adbcace7072b8d /ofproto
parentb0d9a1efccb931d3eb71661b1506c2bdde58d4d9 (diff)
downloadopenvswitch-c156f9bc502a18858a4d9d6d04cae7982f341e6a.tar.gz
ofproto: Include flow cookies in bridge/dump-flows output.
Cookies are an important part of flow descriptions and must be available to the end user. Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@arknetworks.am> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index e4a1bee76..863b34d25 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -4824,6 +4824,10 @@ flow_stats_ds(struct ofproto *ofproto, struct rule *rule, struct ds *results,
created = rule->created;
ovs_mutex_unlock(&rule->mutex);
+ if (rule->flow_cookie != 0) {
+ ds_put_format(results, "cookie=0x%"PRIx64", ",
+ ntohll(rule->flow_cookie));
+ }
if (rule->table_id != 0) {
ds_put_format(results, "table_id=%"PRIu8", ", rule->table_id);
}