]> git.proxmox.com Git - mirror_ovs.git/commit
ovn: Fix receive from vxlan in ovn-controller.
authorDarrell Ball <dlu998@gmail.com>
Tue, 9 Aug 2016 02:20:38 +0000 (19:20 -0700)
committerJustin Pettit <jpettit@ovn.org>
Tue, 2 Aug 2016 18:12:06 +0000 (11:12 -0700)
commit475f0a2c1e8c59d09cc3f73404e20236ec44c04a
treefa944e64101c5c7a2467c60e3d6bcbf603f387bf
parentda9cfca6e2d70c4c8e4bec7ff644a71da149c4b8
ovn: Fix receive from vxlan in ovn-controller.

The changes enable source node replication in OVN for receive from vxlan
tunnels.  OVN only supports source node replication mode.  This is needed
for ovn-controller to interoperate with hardware switches.

Previously hardware vtep interaction, which uses service node
replication by default for multicast/broadcast/unknown unicast traffic
partially "worked" by happenstance.  Because of limited vxlan
encapsulation metadata, received packets were resubmitted to find
the egress port(s). This is not correct for multicast, broadcast and
unknown unicast traffic as traffic will get resent on the tunnel mesh.
ovn-controller is changed not to send traffic received from vxlan
tunnels out the tunnel mesh again.  Traffic received from vxlan tunnels is
now only sent locally as intended with obvious benefits.  This behavior is
newly documented in ovn-architecture.7.xml.

To support keeping state for receipt from a vxlan tunnel, a MFF logical
flags register flag is allocated.

As part of this change ovn-controller-vtep is hard-coded to set the
replication mode of each logical switch to source node as OVN will only
support source node replication.

Signed-off-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
ovn/controller-vtep/vtep.c
ovn/controller/physical.c
ovn/lib/logical-fields.h
ovn/ovn-architecture.7.xml
tests/ovn.at