<div dir="ltr">Hi Jinsheng,<div><br></div><div>Get it. Thank you for the explanation!<div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br></div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 28, 2021 at 4:20 PM Jinsheng Zhang (张金生)-云服务集团 <<a href="mailto:zhangjl02@inspur.com">zhangjl02@inspur.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="ZH-CN">
<div class="gmail-m_-5800772958882879032WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Hi Yalan,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">It seems that there is no output error abount inbound settings from your statistics. 100KB is short for 100 kilobytes, and 1 byte is 8 bit, therefore
 100 kilobytes is 800 kilobit and is also 1024*800 bit which is 819200 bit or 800 Kbit for short. Similarly, 200 KB is equal to 1600Kbit.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">From your test results, inbound.average is set to 400 KB which is 400 * 1024 * 8 bit(approximately 3.2*10^6 bits). outbound.average is set to 100
 KB which is approximately 0.8*10^6 bits. Considering peek and burst is larger than average. The netperf test result is meaningful.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">For the second bug mentioned, after create the ovs-net, tc rules are created. But when attach an interface to an instance, qos settings is not
 add to port neither in xml or tc . It is a bug, I think. I will think about fixing this.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">-------<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Jinsheng Zhang<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif""> Yalan Zhang [mailto:<a href="mailto:yalzhang@redhat.com" target="_blank">yalzhang@redhat.com</a>]
<br>
</span><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif""> 2021</span><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">年<span lang="EN-US">10</span>月<span lang="EN-US">27</span>日<span lang="EN-US">
 18:35<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"><br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> <a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a>; Norman Shen(</span>申嘉童<span lang="EN-US">)<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [PATCH v3 0/4] Add qemu support setting qos via ovs on ovs interface<u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Hi Jinsheng, <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thank you for the explanation. >From the statistics above, the tc outputs for outbound matches. But I'm confused about the inbound statistics:<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh domiftune rhel vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.</span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"> approximately
 3.2*10^6 bits</span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">:
<b>100</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.peak   :
<b>200</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.burst  : 256</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">#  tc -d class show  dev vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:1 parent 1:fffe prio 0 quantum 10240 rate
<b>819200bit</b> ceil <b>1638Kbit</b> linklayer ethernet burst 256Kb/1 mpu 0b cburst 256Kb/1 mpu 0b level 0 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:fffe root rate 1638Kbit ceil 1638Kbit linklayer ethernet burst 1499b/1 mpu 0b cburst 1499b/1 mpu 0b level 7 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">As the value in libvirt xml is KB, inbound.average: *<b>100 KB*</b> can not match with *"rate
<b>819200bit"*</b> in tc outputs<b>,</b> I supposed it should be <b>800Kbit. </b>
Please help to confirm.</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">And so does "ceil
<b>1638Kbit"</b> (may be it should be 1600Kbit as "inbound.peak   : 200").</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US"><u></u> <u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">I have run netperf to test the actual rate, the result is pass. 2 vm connected to the same bridge, set one vm with Qos, see
 test results below:</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US"># virsh domiftune rhel vnet0<br>
inbound.average: 400<br>
inbound.peak   : 500<br>
inbound.burst  : 125<br>
inbound.floor  : 0<br>
outbound.average: 100<br>
outbound.peak  : 200<br>
outbound.burst : 256<u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US">Throughput for inbound:  3.92 * 10^6bits/sec<u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US">Throughput for outbound:  0.93 * 10^6bits/sec<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">These patches fixed the bug [1] which closed <span style="color:black">with deferred resolution. Thank you!</span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:black">And this reminds me of another ovs Qos related bug [2], which was about network.
</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:black">And I tried with the scenarios in [2], there are no changes(not fixed). Just for information. :-)</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1510237" target="_blank">
https://bugzilla.redhat.com/show_bug.cgi?id=1510237</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">[2] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1826168" target="_blank">
https://bugzilla.redhat.com/show_bug.cgi?id=1826168</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US"><br>
-------<br>
Best Regards,<br>
Yalan Zhang<br>
IRC: yalzhang<u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Oct 26, 2021 at 3:23 PM Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"> <<a href="mailto:zhangjl02@inspur.com" target="_blank">zhangjl02@inspur.com</a>> wrote:<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Hi Yalan,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin-left:18pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">1)</span><span lang="EN-US" style="font-size:7pt;font-family:"Times New Roman","serif";color:rgb(31,73,125)">      
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">For inbound, we can use `ovs-vsctl list qos` and `ovs-vsctl list queue`  to check them from the openvswitch side. Values can be found in</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">other_config.  Inbound is in kbyte when set qos with `virsh    domiftune …`, well it is in bit in ovs, Therefore, when inbound.average is set to 100, the corresponding
 value will be  set to 819200 in ovs. </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin-left:18pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">2)</span><span lang="EN-US" style="font-size:7pt;font-family:"Times New Roman","serif";color:rgb(31,73,125)">      
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">For outbound, it is in kbyte in libvirt and ingress_policing_XX in ovs interface is in kbit.</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin-left:18pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">3)</span><span lang="EN-US" style="font-size:7pt;font-family:"Times New Roman","serif";color:rgb(31,73,125)">      
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Ovs use tc to set qos, so we can see output from tc command.
</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">This patch is to unify the qos control and query on ovs ports.
</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">The conversion explanation is added in this patch:
<a href="https://listman.redhat.com/archives/libvir-list/2021-August/msg00422.html" target="_blank">
https://listman.redhat.com/archives/libvir-list/2021-August/msg00422.html</a></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">And there are 6 following patches to fix some bugs. See
<a href="https://listman.redhat.com/archives/libvir-list/2021-August/msg00423.html" target="_blank">
https://listman.redhat.com/archives/libvir-list/2021-August/msg00423.html</a></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">-------</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Best Regards,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Jinsheng Zhang</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"> </span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif"">
 Yalan Zhang [mailto:<a href="mailto:yalzhang@redhat.com" target="_blank">yalzhang@redhat.com</a>]
<br>
</span><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif""> 2021</span><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">年<span lang="EN-US">10</span>月<span lang="EN-US">25</span>日<span lang="EN-US">
 17:54<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Michal Pr</span>í<span lang="EN-US">vozn</span>í<span lang="EN-US">k; Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"><br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> <a href="mailto:libvir-list@redhat.com" target="_blank">
libvir-list@redhat.com</a>; Norman Shen(</span>申嘉童<span lang="EN-US">); zhangjl02<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [PATCH v3 0/4] Add qemu support setting qos via ovs on ovs interface</span></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Jinsheng,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I have tested the patch and have some questions, could you please help to confirm?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1) For inbound, how to check it from the openvswitch side? tc will still show the statistics, is that expected?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2) For outbound, the peak is ignored. I just can not understand the "</span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst:
 2048", how can it come from the setting "outbound.burst : 256"?</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">3) Is the output from tc command expected?
</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Test inbound:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1. start vm with setting as below:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <interface type='bridge'><br>
      <source bridge='ovsbr0'/><br>
      <virtualport type='openvswitch'/><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"><bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">        <inbound average='100' peak='200' burst='256'/></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      </bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"></interface></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">2. <u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh domiftune rhel vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.average: 100</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.peak   : 200</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.burst  : 256</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.floor  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.average: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.peak  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.burst : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ip l</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">17: vnet5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb master ovs-system state UNKNOWN mode DEFAULT group default
 qlen 1000</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">    link/ether fe:54:00:4d:43:5a brd ff:ff:ff:ff:ff:ff</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ovs-vsctl show interface</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">…...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">…...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">name                : vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">#  tc -d class show  dev vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:1 parent 1:fffe prio 0 quantum 10240 rate
<b>819200bit</b> ceil <b>1638Kbit</b> linklayer ethernet burst <b>256Kb</b>/1 mpu 0b cburst 256Kb/1 mpu 0b level 0 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:fffe root rate 1638Kbit ceil 1638Kbit linklayer ethernet burst 1499b/1 mpu 0b cburst 1499b/1 mpu 0b level 7 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">#  tc -d filter show dev vnet5 parent ffff:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">(no outputs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">For outbound:<u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh dumpxml rhel | grep /bandwidth -B2</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"> <bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">        <outbound average='100' peak='200' burst='256'/></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      </bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh domiftune rhel vnet9</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.average: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.peak   : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.burst  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.floor  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.average: 100</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.peak  : 200</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.burst : 256</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ovs-vsctl list interface</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst:
<b>2048</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_rate:
<b>800</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">...<u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># tc -d filter show dev vnet9 parent ffff:</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">filter protocol all pref 49 basic chain 0 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">filter protocol all pref 49 basic chain 0 handle 0x1 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">       action order 1:  police 0x1 rate<b> 800Kbit burst 256Kb</b> mtu 64Kb action drop/pipe overhead 0b linklayer unspec </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">       ref 1 bind 1</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># tc -d class show  dev vnet9
</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">(no outputs)</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
-------<br>
Best Regards,<br>
Yalan Zhang<br>
IRC: yalzhang<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Jul 12, 2021 at 3:43 PM Michal Prívozník <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>> wrote:<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">On 7/9/21 3:31 PM, Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"> wrote:<br>
> Here is my signed-off-by line<br>
> <br>
> Signed-off-by: <a href="mailto:zhangjl02@inspur.com" target="_blank">zhangjl02@inspur.com</a><br>
> <br>
> Thanks again for reminding:) .<br>
<br>
Perfect.<br>
<br>
Reviewed-by: Michal Privoznik <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>><br>
<br>
and pushed. Congratulations on your first libvirt contribution!<br>
<br>
Michal<u></u><u></u></span></p>
</div>
</div>

</blockquote></div>