[ovs-dev] [PATCH 0/4] netdev-dpdk: Support multi-queue for ovs-dpdk QoS

zhaozhanxu zhaozhanxu at 163.com
Thu Jul 20 08:38:45 UTC 2017


Original command is as below:

    $ ovs-vsctl set port vhost-user0 qos=@newqos -- \
            --id=@newqos create qos type=egress-policer other-config:cir=46000000 \
            other-config:cbs=2048`

Now it can support command as below:

    $ ovs-vsctl set port vhost-user0 qos=@newqos -- \
            --id=@newqos create qos type=egress-policer \
            other-config:cir=46000000 other-config:cbs=2048` \
            queues:123=@q123 queues:234=@q234 -- \
            --id=@q123 create queue other-config:cir=12800000 other-config:cbs=2048 -- \
            --id=@q234 create queue other-config:cir=25600000 other-config:cbs=2048`

Then, we can use OpenFlow to direct packet to queues:

    $ ovs-ofctl add-flow br0 in_port=5,actions=set_queue:123,normal
    $ ovs-ofctl add-flow br0 in_port=6,actions=set_queue:234,normal

Finally, we can use command `ovs-appctl -t ovs-vswitchd qos/show vhost-user0` to show QoS queue information.

Signed-off-by: zhaozhanxu <zhaozhanxu at 163.com>

zhaozhanxu (4):
  Support multi-queue for ovs-dpdk QoS.
  Support multi-queue rate limit function for ovs-dpdk Qos.
  Support to show multi-queue qos info
  Modify QoS configure documents for ovs-dpdk

 Documentation/howto/dpdk.rst |  12 +-
 lib/netdev-dpdk.c            | 374 +++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 374 insertions(+), 12 deletions(-)

-- 
2.7.4




More information about the dev mailing list