Allow the port to be updated if it the type is only: NdisSwitchPortTypeSynthetic
v2: Add Acked-by lines. Acked-by: Nithin Raju <nit...@vmware.com> Acked-by: Eitan Eliahu <elia...@vmware.com> Acked-by: Sorin Vinturis <svintu...@cloudbasesolutions.com> Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> --- 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 a6cbb8f..f46a0ac 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; } -- 1.9.5.msysgit.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev