[ovs-discuss] Regarding Traffic Shaping on VhostUser ports and rate limit traffic based on OVS flows

Farooq Basha fasss.juturu at gmail.com
Thu Sep 22 09:42:04 UTC 2016


Hi All,

       Does Traffic Shaping supported on VhostUser ports, using either
linux TC utility or OVS HTB Qdisc ? My understanding is currently it
supports only Egress Policer.

   Also is there way to rate limit the traffic (Bandwidth) from Guest Os
(It runs OVS) to Host Vm ? (the communication to Host Vm achieved using
VhostUser Ports)

I have tried the following OVS commands on Vhostuser ports.It seems these
are not effective because Vhostuser ports does not support the concept of
OVS queues.



ovs-vsctl --no-wait add-br br0 -- set bridge br0 datapath_type=netdev

ovs-vsctl --no-wait  add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
ofport_request=1
ovs-vsctl --no-wait  add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
ofport_request=2

ovs-ofctl add-flow br0 in_port=1,action=set_queue=0,output:3
ovs-ofctl add-flow br0 in_port=2,action=set_queue=1,output:3

The traffic coming from port 1 and port 2 is always going to queue 0
only.Tried with Multi-queue option but no luck.

Thanks
Basha.J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160922/2bcb8869/attachment-0002.html>


More information about the discuss mailing list