datapath-windows: Allow recirculation feature probe.
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Fri, 25 Mar 2016 14:49:27 +0000 (14:49 +0000)
committerBen Pfaff <blp@ovn.org>
Fri, 25 Mar 2016 15:24:35 +0000 (08:24 -0700)
Recirculation feature probe messages sent from userspace are
suppressed by the OVS extension.

This patch changes the current behaviour to allow feature probe
for recirculation.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath-windows/ovsext/Flow.c

index 0bcab62..9993e49 100644 (file)
@@ -2597,8 +2597,15 @@ OvsProbeSupportedFeature(POVS_MESSAGE msgIn,
             OVS_LOG_ERROR("Wrong ethertype for MPLS attribute.");
             status = STATUS_INVALID_PARAMETER;
         }
+    } else if (keyAttrs[OVS_KEY_ATTR_RECIRC_ID]) {
+        UINT32 recircId = NlAttrGetU32(keyAttrs[OVS_KEY_ATTR_RECIRC_ID]);
+
+        if (!recircId) {
+            OVS_LOG_ERROR("Invalid recirculation ID.");
+            status = STATUS_INVALID_PARAMETER;
+        }
     } else {
-        OVS_LOG_ERROR("Probed feature not supported.");
+        OVS_LOG_ERROR("Feature not supported.");
         status = STATUS_INVALID_PARAMETER;
     }