summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Oid.c
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2014-10-09 17:46:55 +0000
committerBen Pfaff <blp@nicira.com>2014-10-09 15:47:17 -0700
commitc99e65005e2a5e80978dbed8d4a9266952fb4852 (patch)
treed21ca7fabfe72734e390f62ae9b371c0876775c0 /datapath-windows/ovsext/Oid.c
parentfa0483234cc32b354cd37272b0082506d3522871 (diff)
downloadopenvswitch-c99e65005e2a5e80978dbed8d4a9266952fb4852.tar.gz
datapath-windows: We don't need to keep validation ports in ovs
Validation ports are used internally by the hyper-v switch to validate and verify settings for the real hyper-v switch ports that will be connected to the VNic. The validation ports are of no use to us - we must skip handling them, and return STATUS_SUCCESS as the OID result. Signed-off-by: Samuel Ghinet <sghinet@cloudbasesolutions.com> Co-authored-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Tested-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Oid.c')
-rw-r--r--datapath-windows/ovsext/Oid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Oid.c b/datapath-windows/ovsext/Oid.c
index 487739f5c..9659af713 100644
--- a/datapath-windows/ovsext/Oid.c
+++ b/datapath-windows/ovsext/Oid.c
@@ -159,6 +159,14 @@ OvsProcessSetOidPort(POVS_SWITCH_CONTEXT switchObject,
goto done;
}
+ if (portParam->IsValidationPort) {
+ /* Validation ports are used internally by the Hyper-V switch
+ * to validate and verify settings. We must skip handling them,
+ * and return STATUS_SUCCESS as the OID result
+ */
+ return NDIS_STATUS_SUCCESS;
+ }
+
switch(setInfo->Oid) {
case OID_SWITCH_PORT_CREATE:
status = HvCreatePort(switchObject, portParam);