[ovs-dev] [PATCH v2 13/26] ofproto-dpif: Always forward 'used' from the old_rule.

Ben Pfaff blp at ovn.org
Fri Jul 29 20:34:43 UTC 2016


On Thu, Jul 28, 2016 at 05:56:05PM -0700, Jarno Rajahalme wrote:
> Use new rule's flags to determine whether stats should be forwarded
> from the old, modified rule to the new rule.  This captures the fact
> that prior to OpenFlow 1.2, which defines the reset counts flag, the
> reset counts semantics was assumed by default.  However, in that case
> the reset counts flag is only present in the new flow, not on the
> corresponding flow mod.
> 
> Having the above fixed revealed that the 'used' timestamp was not
> forwarded from the old rule to the new rule when counts were not being
> forwarded.  Fix this by always forwarding the 'used' timestamp.
> 
> Fixes: 39c9459355 ("Use classifier versioning.")
> Signed-off-by: Jarno Rajahalme <jarno at ovn.org>

Acked-by: Ben Pfaff <blp at ovn.org>



More information about the dev mailing list