From ce5112573fa58d34ca87dc488ec0d996f8c7f0d8 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Mon, 6 Apr 2015 17:28:42 +0000 Subject: [PATCH] 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 --- datapath-windows/ovsext/Vport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1