[ovs-discuss] [ovs-dev] meter stats cleared when modify meter bands

ychen ychen103103 at 163.com
Thu Jul 29 05:43:07 UTC 2021

I know  that in latest ovs versions, both kernel datapath and dpdk userspace datapath supports meter action.
what I want to know is why we need to clear stats when modify meter bands? are there any considerations?
I think it is easily to keep meter stats when only modify meter bands.

At 2021-07-28 13:46:21, "Tonghao Zhang" <xiangxia.m.yue at gmail.com> wrote:
>On Wed, Jul 28, 2021 at 10:57 AM ychen <ychen103103 at 163.com> wrote:
>> Hi, all:
>>     I have a question why meter stats need  cleared when just modify meter bands?
>>     when call function handle_modify_meter(), it finally call function dpif_netdev_meter_set(), in this function new dp_meter will be allocated and attched, hence stats will be cleared.
>>    if we just update dp_meter bands configuration, so the stats will be keeped when meter modify.
>>    Is there any consideration about this meter modify action?
>The commit 80738e5f93a70 supports the meter for kernel datapath.
>and even though kernel modules support to set stats, but userspace
>doesn't set them.
>If needed, we can support this.
>> _______________________________________________
>> dev mailing list
>> dev at openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>Best regards, Tonghao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20210729/8ab1917b/attachment.html>

More information about the discuss mailing list