From: Alin Serdean Date: Mon, 6 Apr 2015 17:28:42 +0000 (+0000) Subject: datapath-windows: Allow NdisSwitchPortTypeSynthetic to be updated X-Git-Tag: v2.4.0~379 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=ce5112573fa58d34ca87dc488ec0d996f8c7f0d8 datapath-windows: Allow NdisSwitchPortTypeSynthetic to be updated Allow the port to be updated if it the type is only: NdisSwitchPortTypeSynthetic Acked-by: Nithin Raju Acked-by: Eitan Eliahu Acked-by: Sorin Vinturis Signed-off-by: Alin Gabriel Serdean Signed-off-by: Ben Pfaff --- diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 12751beaf..38bbcfa2d 100644 --- a/datapath-windows/ovsext/Vport.c +++ b/datapath-windows/ovsext/Vport.c @@ -167,8 +167,8 @@ HvUpdatePort(POVS_SWITCH_CONTEXT switchContext, * Update properties only for NETDEV ports for supprting PS script * We don't allow changing the names of the internal or external ports */ - if (vport == NULL || ( vport->portType != NdisSwitchPortTypeSynthetic) || - ( vport->portType != NdisSwitchPortTypeEmulated)) { + if (vport == NULL || (( vport->portType != NdisSwitchPortTypeSynthetic) && + ( vport->portType != NdisSwitchPortTypeEmulated))) { goto update_port_done; }