On 5/31/22 20:29, William Tu wrote:
> CT timeout is not supported in Windows datapath, but
> currently it incorrectly reports to ovs-vswitchd as supported blow
> "system@ovs-system: Datapath supports timeout policy in conntrack
> 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/Conntrack.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/datapath-windows/ovsext/Conntrack.c
> b/datapath-windows/ovsext/Conntrack.c
> index 471bf961b..b33676cc1 100644
> --- a/datapath-windows/ovsext/Conntrack.c
> +++ b/datapath-windows/ovsext/Conntrack.c
> @@ -1436,6 +1436,9 @@ OvsExecuteConntrackAction(OvsForwardingContext *fwdCtx,
> }
> }
> break;
> + case OVS_CT_ATTR_TIMEOUT:
> + return NDIS_STATUS_NOT_SUPPORTED;
> + break;
'break;' here should not be necessary, I guess.
> default:
> OVS_LOG_TRACE("Invalid netlink attr type: %u",
> NlAttrType(ctAttr));
> break;
Similar to the other patch, shouldn't the return just be
part of the 'default' case instead of a 'break'.
Skipping unknown attributes doesn't seem correct.
Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev