diff options
author | Paolo Valerio <pvalerio@redhat.com> | 2022-10-31 16:57:33 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-11-02 19:49:07 +0100 |
commit | a3848d98e19479cf87cd2216fa606f51fdb32b52 (patch) | |
tree | ae10f29416e6a4adf9bcecfedf00ec0f9b88e3d2 /lib/conntrack.c | |
parent | fec5424aedc9a104013d85cdd4e7399e10777a8a (diff) | |
download | openvswitch-a3848d98e19479cf87cd2216fa606f51fdb32b52.tar.gz |
conntrack: Show parent key if present.
Similarly to what happens when CTA_TUPLE_MASTER is present in a ct
netlink dump, add the ability to print out the parent key to the
userspace implementation as well.
Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/conntrack.c')
-rw-r--r-- | lib/conntrack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/conntrack.c b/lib/conntrack.c index 13c5ab628..550b2be9b 100644 --- a/lib/conntrack.c +++ b/lib/conntrack.c @@ -2647,6 +2647,10 @@ conn_to_ct_dpif_entry(const struct conn *conn, struct ct_dpif_entry *entry, conn_key_to_tuple(&conn->key, &entry->tuple_orig); conn_key_to_tuple(&conn->rev_key, &entry->tuple_reply); + if (conn->alg_related) { + conn_key_to_tuple(&conn->parent_key, &entry->tuple_parent); + } + entry->zone = conn->key.zone; ovs_mutex_lock(&conn->lock); |