On Tue, Feb 11, 2014 at 04:30:46PM -0800, Jarno Rajahalme wrote:
> Rule's 'used' timestamp is updated at the same time with the other
> stats.  So far the 'used' has been updated without proper protection,
> which may lead to 'tearing' in 32-bit architectures, resulting in an
> incorrect 'used' timestamp.  While in practice this is highly
> improbable, it is still better to handle this correctly.
> 
> This is resolved by moving the 'used' field to the provider's stats,
> so that whatever protection is used for updating packet and byte
> counts, can be also used for both reading and writing of the 'used'
> timestamp.
> 
> Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com>

Acked-by: Ben Pfaff <b...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to