William, I have several flows to share a meter, at the time, every flow has its 
own meter, they look like the below:

table=0,ip,nw_src=10.0.0.2 actions=meter:1,meter:4, ...other-actions
table=0,ip,nw_src=10.0.0.3 actions=meter:2,meter:4, ...other-actions
table=0,ip,nw_src=10.0.0.3 actions=meter:3,meter:4, ...other-actions

meter 4 are shared by three flows so that we can let tenants leverage their 
bandwidth more efficient between three flows, so total limit is 100Mbps, every 
one limit is 50Mbps, if flow 3 has lower bandwidth utilization rate, flow 1 and 
2 can leverage it. I can get every flow stats and also can get all the flows 
stats by meter 4, that is what I'm saying.

I think supporting it isn't a big technical issue, it will be great if you can 
add this feature, I think it is very helpful, we have real use cases which is 
called shared bandwith.

-----邮件原件-----
发件人: William Tu [mailto:u9012...@gmail.com] 
发送时间: 2019年8月10日 0:54
收件人: Yi Yang (杨燚)-云服务集团 <yangy...@inspur.com>
抄送: ovs-dev@openvswitch.org; ovs-disc...@openvswitch.org
主题: Re: [ovs-discuss] why action "meter" only can be specified once?

On Mon, Aug 5, 2019 at 12:39 AM Yi Yang (杨燚)-云服务集团 <yangy...@inspur.com> wrote:
>
> Hi, all
>
>
>
> I was told meter only can be specified once, but actually there is such case 
> existing, i.e. multiple flows share a total bandwidth, but every flow also 
> has its own bandwidth limit, by two meters, we can not only get every flow 
> stats but also get total stats, I think this is very reasonable user scenario.
>

I don't understand your use case.
You can create multiple meters and each flow can use it own meter to rate 
limit, right?
>
>
> ovs-ofctl: instruction meter may be specified only once
How do you get this error?

Thanks
William
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to