summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif-trace.h
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2023-02-22 22:12:46 +0100
committerIlya Maximets <i.maximets@ovn.org>2023-02-27 13:43:14 +0100
commitb5313a8ceca8ee45b3e8fd862324c6a43f562bd9 (patch)
treed49584ce70625a57c0a07971eba8c16e27c25c48 /ofproto/ofproto-dpif-trace.h
parentcf288fdfe2bfc11909a6d14ee55039e193f96460 (diff)
downloadopenvswitch-b5313a8ceca8ee45b3e8fd862324c6a43f562bd9.tar.gz
ofproto: Fix re-creation of tunnel backing interfaces on restart.
Tunnel OpenFlow ports do not exist in the datapath, instead there is a tunnel backing interface that serves all the tunnels of the same type. For example, if the geneve port 'my_tunnel' is added to OVS, it will create 'geneve_sys_6041' datapath port, if it doesn't already exist, and use this port as a tunnel output. However, while creating/opening a new datapath after re-start, ovs-vswitchd only has a list of names of OpenFlow interfaces. And it thinks that each datapath port, that is not on the list, is a stale port that needs to be removed. This is obviously not correct for tunnel backing interfaces that can serve multiple tunnel ports and do not match OpenFlow port names. This is causing removal and re-creation of all the tunnel backing interfaces in the datapath on OVS restart, causing disruption in existing connections. It's hard to tell by only having a name of the interface if this interface is a tunnel backing interface, or someone just named a normal interface this way. So, instead of trying to determine that, not removing any interfaces at all, while we don't know types of actual ports we need. Assuming that all the ports that are currently not in the list of OF ports are tunnel backing ports. Later, revalidation of tunnel backing ports in type_run() will determine which ports are still needed and which should be removed. It's OK to add even a non-tunnel stale ports into tnl_backers, they will be cleaned up the same way as stale tunnel backers. Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2023-February/052215.html Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif-trace.h')
0 files changed, 0 insertions, 0 deletions