datapath-windows: Allow NdisSwitchPortTypeSynthetic to be updated
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Mon, 6 Apr 2015 17:28:42 +0000 (17:28 +0000)
committerBen Pfaff <blp@nicira.com>
Mon, 6 Apr 2015 18:04:42 +0000 (11:04 -0700)
Allow the port to be updated if it the type is only:
NdisSwitchPortTypeSynthetic

Acked-by: Nithin Raju <nithin@vmware.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Vport.c

index 12751be..38bbcfa 100644 (file)
@@ -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;
     }