summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Vport.c
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2015-07-01 15:32:18 +0000
committerBen Pfaff <blp@nicira.com>2015-07-01 10:20:35 -0700
commitbc651c85497d7a8c32e83b44986dae27dec3bcd5 (patch)
tree48517249a9d5a5b0dbdb637801e24c1e77757e07 /datapath-windows/ovsext/Vport.c
parent47e6f8c73e66b288729d7f1f994f9748302c5336 (diff)
downloadopenvswitch-bc651c85497d7a8c32e83b44986dae27dec3bcd5.tar.gz
datapath-windows: Failed initialization for datapath tunnel ports
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>
Diffstat (limited to 'datapath-windows/ovsext/Vport.c')
-rw-r--r--datapath-windows/ovsext/Vport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c
index 913954561..bff3ff686 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -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;