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....@gmail.com> wrote: >On Wed, Jul 28, 2021 at 10:57 AM ychen <ychen103...@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. >https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=96fbc13d7e770b542d2d1fcf700d0baadc6e8063 > >If needed, we can support this. > >> _______________________________________________ >> dev mailing list >> d...@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev > > > >-- >Best regards, Tonghao
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss