On Mon, Feb 27, 2023 at 03:58:04PM +0100, Eelco Chaudron wrote:
> Depending on the driver implementation, it can take from 0.2 seconds
> up to 2 seconds before offloaded flow statistics are updated. This is
> true for both TC and rte_flow-based offloading. This is causing a
> problem with min-revalidate-pps, as old statistic values are used
> during this period.
> 
> This fix will wait for at least 2 seconds, by default, before assuming no
> packets where received during this period.
> 
> Reviewed-by: Simon Horman <[email protected]>
> Signed-off-by: Eelco Chaudron <[email protected]>
> ---
> 
> Changes:
> - v2: Use existing ukey->offloaded so the revalidate_missed_dp_flow case is
>       also covered.
> - v3: Added OVS_REQUIRES(ukey->mutex) to should_revalidate() to keep
>       thread-safety-analysis happy.
> - v4: Add a configurable option.
>       After looking at multiple vendor implementation for both TC and
>       rte_flow I came to the conclusion that the delay is roughly between
>       0.2 and 2 seconds. Updated commit message.
> - v5: Rebased to latest upstream master.
>       Made the key parameter const in should_revalidate().

Thanks, LGTM.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to