On Mon, Apr 13, 2015 at 6:45 PM, 周二 <zhouje1...@163.com> wrote: > Thank you so much, that solve our problem. > > And do you know why we need to create a qos first? What is the relationship > between qos and queue. Have you read the sections on qos and queue in 'man ovs-vswitchd.conf.db' ? That should provide some details. I think OVS design tries to follow the corresponding Linux tc implementation. There is a parent class and a bunch of sub classes there. I see qos table as something that defines the type of QoS (e.g: linux-htb, linux-hfsc) and provides an ability to set a max-rate for all the underlying queues and acts as a parent. Queue table is used to provide more fine-grained control for specific type of traffic going through a port.
> > Thanks again. > > > > > > > At 2015-04-14 00:08:40, "Gurucharan Shetty" <shet...@nicira.com> wrote: >>You need to remove the reference of the queue from the qos table and >>destroy the queue in a single transaction. >> >>e.g: >> >>* Create qos and queue records: >>ovs-vsctl -- set port p0 qos=@newqos -- --id=@newqos create qos >>type=linux-htb other-config:max-rate=900000000 >>queues=10=@q0,20=@q1,30=@q2 -- --id=@q0 create queue >>other-config:min-rate=720000000 other-config:max-rate=900000000 -- >>--id=@q1 create queue other-config:min-rate=0 >>other-config:max-rate=90000000 -- --id=@q2 create queue >>other-config:min-rate=0 other-config:max-rate=90000000 >> >>* Look at the record: >>ovs-vsctl list qos >>_uuid : e472fc24-2d9b-4e5d-8283-906b7b9504d5 >>external_ids : {} >>other_config : {max-rate="900000000"} >>queues : {10=efe0afff-79db-4712-a85c-5e2e0018dd04, >>20=680e8ec5-a8d2-4b1b-b6c7-0b648ebf102d, >>30=ebee7bdf-33ab-46b6-b073-83c5419274bf} >>type : linux-htb >> >> >>* Remove queue '10' >>ovs-vsctl remove qos e472fc24-2d9b-4e5d-8283-906b7b9504d5 queues 10 -- >>destroy queue efe0afff-79db-4712-a85c-5e2e0018dd04 >> >>On Mon, Apr 13, 2015 at 8:54 AM, zy <laoz...@126.com> wrote: >>> cc discuss >>> I am testing OVS version 2.3.1 and have the same problem. Is there >>> anyone knows about the issue, or I have to disconnect QoS and all queues >>> first before I destroy one specific queue. >>> And could you pls explain what's role of QoS in this scenario (ie:why do >>> we need to create a qos at a port first and then add queues to qos rather >>> than just add queues to port directly ) >>> >>> >>> thanks >>> >>> >>> >>> 发件人:周二 [mailto:zhouje1...@163.com] >>> 发送时间: 2015年4月13日 15:21 >>> 收件人: d...@openvswitch.org >>> 抄送:张勇 >>> 主题: How to destroy a single queue at the qos? >>> >>> >>> >>> Hi: >>> >>> We have a problem to destroy a single queue on the qos. >>> >>> >>> >>> We first set a qos at a port : ovs-vsctl set port eth0 qos=@newqos >>> -- --id=@newqos create qos external_ids:qos=eth0 type=linux-htb >>> other-config:max-rate=1000000000 >>> >>> Then add two queues to the qos: ovs-vsctl -- add qos eth0 queue >>> 123=@queue10M -- --id=@queue10M create queue external_ids:name=1M-for-tap1 >>> other-config:max-rate=10000000 >>> >>> ovs-vsctl -- add qos eth0 queue >>> 223=@queue10M -- --id=@queue10M create queue external_ids:name=1M-for-tap2 >>> other-config:max-rate=10000000 >>> >>> >>> >>> Now we want to destroy only queue 123, and we have to disconnect the link >>> between qos and queues : ovs-vsctl clear qos eth0 queues. This will also >>> disconnect the link for 223. Would any one help us to destroy queue 123 and >>> does not influence queue 223? >>> >>> >>> >>> Thanks for your help! >>> _______________________________________________ >>> dev mailing list >>> d...@openvswitch.org >>> http://openvswitch.org/mailman/listinfo/dev > > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss