[ovs-discuss] [ovs-dev] How to destroy a single queue at the qos?

周二 zhouje1005 at 163.com
Tue Apr 14 01:45:15 UTC 2015


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. 


Thanks again.


 





At 2015-04-14 00:08:40, "Gurucharan Shetty" <shettyg at 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 <laoz103 at 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:zhouje1005 at 163.com]
>> 发送时间: 2015年4月13日 15:21
>> 收件人: dev at 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
>> dev at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20150414/c309337d/attachment-0001.html>


More information about the discuss mailing list