On Fri, Apr 19, 2019 at 3:27 PM William Tu <[email protected]> wrote:
>
> When testing packet rate around 1Mpps with meter enabled, the frequency
> of hitting meter action becomes much higher, around 30us each time.
> As a result, the meter's calculation of 'uint32_t delta_t' becomes
> always 0 and meter action has no effect. This is due to the previous
> commit 05f9e707e194 divides the delta by 1000, in order to convert to
> msec granularity. The patch fixes it updating the time when across
> millisecond boundary.
>
> Fixes: 05f9e707e194 ("dpif-netdev: Use microsecond granularity.")
> Cc: Ilya Maximets <[email protected]>
> Cc: Yi-Hung Wei <[email protected]>
> Signed-off-by: William Tu <[email protected]>
> ---
Looks good to me.
Acked-by: Yi-Hung Wei <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev