[ovs-discuss] Packet or byte counter reset after flow mod

Ben Pfaff blp at nicira.com
Wed Jul 24 15:29:07 UTC 2013


On Wed, Jul 24, 2013 at 05:39:04PM +0900, Junho Suh wrote:
> My problem encountered now is that packet and byte counters are reset after
> flow mod.
> For example, first I setup rule1 and then setup rule2 which has same
> matching rule except priority after some time. Therefore, there are two
> rules in the network with different priority, and rule2 has higher priority
> than rule1.
> 
> In this scenario, a traffic matching with rule1 remains packet and byte
> count on rule1, and then rule2. But when I try to do that, rule1's counter
> is reset.
> 
> Anybody know why the previous one is reset? and how can I avoid this
> problem?

Open vSwitch follows the OpenFlow specification, which says that an
"add" flow-mod resets counters and "modify" and "modify-strict"
flow-mods do not.



More information about the discuss mailing list