Skip to content

Commit

Permalink
datapath-windows: Failed initialization for datapath tunnel ports
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reported-by: Sorin Vinturis <[email protected]>
Reported-at: openvswitch/ovs-issues#88
Acked-by: Eitan Eliahu <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
svinturis authored and blp committed Jul 1, 2015
1 parent 47e6f8c commit bc651c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapath-windows/ovsext/Vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc651c8

Please sign in to comment.