[ovs-dev] [PATCH v6 3/6] datapath-windows: Allow recirculation feature probe.
Sorin Vinturis
svinturis at cloudbasesolutions.com
Fri Mar 18 14:58:42 UTC 2016
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 at cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam at vmware.com>
---
datapath-windows/ovsext/Flow.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/datapath-windows/ovsext/Flow.c b/datapath-windows/ovsext/Flow.c
index 2ceeb94..555d6b2 100644
--- a/datapath-windows/ovsext/Flow.c
+++ b/datapath-windows/ovsext/Flow.c
@@ -2625,8 +2625,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;
}
--
1.9.0.msysgit.0
More information about the dev
mailing list