Skip to content

Commit

Permalink
datapath-windows: Allow recirculation feature probe.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svinturis authored and blp committed Mar 25, 2016
1 parent ee25964 commit c7b46d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion datapath-windows/ovsext/Flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c7b46d8

Please sign in to comment.