There is a bug in the rate limiting, for the type of int has a max limit 2147483648,(lt 2000000*1000) if you can change type 'int' to 'uint' in the function context, as follow, static int tc_add_policer(struct netdev *netdev, int kbits_rate, int kbits_burst)
From: discuss<mailto:[email protected]> Date: 2015-03-10 13:37 To: Navneet Singh<mailto:[email protected]> CC: [email protected]<mailto:[email protected]> Subject: Re: [ovs-discuss] How to apply rate limiting or QoS on upload speed? On Tue, Mar 10, 2015 at 11:05:12AM +0530, Navneet Singh wrote: > I am trying to control upload speed using openvswitch on eth1 port using > commands like > > > > =>ovs-vsctl set port eth1 qos=@newqos -- --id=@newqos create qos > > type=linux-htb queues=0=@q0,1=@q1 -- --id=@q0 create queue > > other-config:min-rate=2000000 other-config:max-rate=2000000 -- --id=@q1 > > create queue other-config:min-rate=3000000 other-config:max-rate=3000000 > > > WAN is provided to eth0 port and forwarded to br0 through iptables and NAT. > I am able to achieve rate limiting on downloading but not on uploading. qdiscs only control the rate of data transmission, not reception. You might want to use policing, please see ovs-vswitchd.conf.db(5) for configuration details. _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss ------------------------------------------------------------------------------------------------------------------------------------- 本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出 的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、 或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本 邮件! This e-mail and its attachments contain confidential information from H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
