Truncate action is not supported in Windows datapath, but currently it incorrectly reports to ovs-vswitchd as supported blow "system@ovs-system: Datapath supports truncate action". The patches detects it and returns not support.
Cc: Alin-Gabriel Serdean <[email protected]> Cc: Wilson Peng <[email protected]> Signed-off-by: William Tu <[email protected]> --- datapath-windows/ovsext/Actions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datapath-windows/ovsext/Actions.c b/datapath-windows/ovsext/Actions.c index 0f7f78932..3a5e71ee9 100644 --- a/datapath-windows/ovsext/Actions.c +++ b/datapath-windows/ovsext/Actions.c @@ -2502,6 +2502,11 @@ OvsDoExecuteActions(POVS_SWITCH_CONTEXT switchContext, } break; } + case OVS_ACTION_ATTR_TRUNC: + status = NDIS_STATUS_NOT_SUPPORTED; + dropReason = L"OVS-truncate action not supported"; + goto dropit; + break; default: status = NDIS_STATUS_NOT_SUPPORTED; break; -- 2.33.0.windows.2 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
