[ovs-discuss] [ovs-dev] meter stats cleared when modify meter bands
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
>Best regards, Tonghao
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the discuss