On 23 May 2023, at 15:11, Balazs Nemeth wrote:
> The only way that stats->{n_packets,n_bytes} would decrease is due to an
> overflow, or if there are bugs in how statistics are handled. In the
> past, there were multiple issues that caused a jump backward. A
> workaround was in place to set the statistics to 0 in that case. When
> this happened while the revalidator was under heavy load, the workaround
> had an unintended side effect where should_revalidate returned false
> causing the flow to be removed because the metric it calculated was
> based on a bogus value. Since many of those bugs have now been
> identified and resolved, there is no need to set the statistics to 0. In
> addition, the (unlikely) overflow still needs to be handled
> appropriately. If an unexpected jump does happen, just log it as a
> warning.
>
> Signed-off-by: Balazs Nemeth <[email protected]>
Thanks for all the re-work, this revision looks good to me.
Acked-by: Eelco Chaudron <[email protected]>
Cheers,
Eelco
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- Re: [ovs-dev] [PATCH v5] ofproto-dpif-upcall: Don'... Eelco Chaudron
- Re: [ovs-dev] [PATCH v5] ofproto-dpif-upcall: Don'... Eelco Chaudron
- Re: [ovs-dev] [PATCH v5] ofproto-dpif-upcall: Don'... Ilya Maximets
- [ovs-dev] [PATCH v6] ofproto-dpif-upcall: Don't se... Balazs Nemeth
- Re: [ovs-dev] [PATCH v6] ofproto-dpif-upcall: Don'... Ilya Maximets
- [ovs-dev] [PATCH v7] ofproto-dpif-upcall: Don't se... Balazs Nemeth
- [ovs-dev] [PATCH v8] ofproto-dpif-upcall: Don't se... Balazs Nemeth
- [ovs-dev] [PATCH v9] ofproto-dpif-upcall: Don't se... Balazs Nemeth
- Re: [ovs-dev] [PATCH v9] ofproto-dpif-upcall: Don'... Eelco Chaudron
- [ovs-dev] [PATCH v10] ofproto-dpif-upcall: Don't s... Balazs Nemeth
- Re: [ovs-dev] [PATCH v10] ofproto-dpif-upcall: Don... Eelco Chaudron
- Re: [ovs-dev] [PATCH v10] ofproto-dpif-upcall: Don... Ilya Maximets
- Re: [ovs-dev] [PATCH v10] ofproto-dpif-upcall: Don... Eelco Chaudron
- [ovs-dev] [PATCH v11] ofproto-dpif-upcall: Don't s... Balazs Nemeth
- Re: [ovs-dev] [PATCH v11] ofproto-dpif-upcall: Don... Simon Horman
- [ovs-dev] [PATCH v12] ofproto-dpif-upcall: Don't s... Balazs Nemeth
- Re: [ovs-dev] [PATCH v12] ofproto-dpif-upcall: Don... Ilya Maximets
- [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don't s... Balazs Nemeth
- Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don... Eelco Chaudron
- Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don... Marcelo Ricardo Leitner
- Re: [ovs-dev] [PATCH v13] ofproto-dpif-upcall: Don... Eelco Chaudron
