datapath-windows: Failed initialization for datapath tunnel ports
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Wed, 1 Jul 2015 15:32:18 +0000 (15:32 +0000)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Jul 2015 17:22:41 +0000 (10:22 -0700)
Tunnel ports are not initialized with the corresponding default port.
The newly allocated vport is not yet initialized and the ovsType
member does not reflect the correct tunnel port type, thus the
transport port destination won't be correctly initialized.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/88
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Vport.c

index 9139545..bff3ff6 100644 (file)
@@ -2160,7 +2160,7 @@ OvsNewVportCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx,
         if (OvsIsTunnelVportType(portType)) {
             UINT16 transportPortDest = 0;
 
-            switch (vport->ovsType) {
+            switch (portType) {
             case OVS_VPORT_TYPE_VXLAN:
                 transportPortDest = VXLAN_UDP_PORT;
                 break;