]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto-dpif-rid: Store tunnel metadata in frozen metadata directly.
authorJustin Pettit <jpettit@ovn.org>
Fri, 7 Jul 2017 23:04:57 +0000 (16:04 -0700)
committerJustin Pettit <jpettit@ovn.org>
Fri, 28 Jul 2017 02:20:16 +0000 (19:20 -0700)
commit6cb5e507973f30e8ca14b4bb518173a9ef51acfa
treea3ddd3358119fc273a820bf2359223b1121e8a55
parentfe70f381c18e2abefc71bc59d6fad3c7386d69d9
ofproto-dpif-rid: Store tunnel metadata in frozen metadata directly.

"recirc_id_node" contains a 'state_metadata_tunnel' member field.  The
"frozen_metadata" structure used by "recird_id_node" had a 'tunnel'
member that always pointed to 'state_metadata_tunnel".  This commit just
stores the tunnel information directly in "frozen_metadata" instead of
accessing it through a pointer.

This makes the code a bit simpler and easier to reason about.

Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-rid.c
ofproto/ofproto-dpif-rid.h