diff mbox

[ovs-dev,v2,4/4] dpdk.rst: Modify QoS configure documents for ovs-dpdk

Message ID 1500951228-18646-5-git-send-email-zhaozhanxu@163.com
State Changes Requested
Headers show

Commit Message

zhaozhanxu July 25, 2017, 2:53 a.m. UTC
Signed-off-by: zhaozhanxu <zhaozhanxu@163.com>
---
 Documentation/howto/dpdk.rst | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Comments

Stokes, Ian Oct. 17, 2017, 8:53 a.m. UTC | #1
> Signed-off-by: zhaozhanxu <zhaozhanxu@163.com>

You will need to provide a commit message for this patch.

> ---
>  Documentation/howto/dpdk.rst | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst
> index af01d3e..cc6425d 100644
> --- a/Documentation/howto/dpdk.rst
> +++ b/Documentation/howto/dpdk.rst
> @@ -126,8 +126,18 @@ of size 64 bytes, the following command would limit
> the egress transmission  rate of the port to ~1,000,000 packets per
> second::
> 
>      $ ovs-vsctl set port vhost-user0 qos=@newqos -- \
> -        --id=@newqos create qos type=egress-policer other-
> config:cir=46000000 \
> -        other-config:cbs=2048`
> +        --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`
> +
> +To direct packets to queues, run::
> +
> +    $ 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

This patchset has added a lot of new features such as stats, queue destruction etc. I would expect example of these and any other new functionality to be detailed in here as well, not just the new port QoS creation method.

> 
>  To examine the QoS configuration of the port, run::
> 
> --
> 2.7.4
> 
> 
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
diff mbox

Patch

diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst
index af01d3e..cc6425d 100644
--- a/Documentation/howto/dpdk.rst
+++ b/Documentation/howto/dpdk.rst
@@ -126,8 +126,18 @@  of size 64 bytes, the following command would limit the egress transmission
 rate of the port to ~1,000,000 packets per second::
 
     $ ovs-vsctl set port vhost-user0 qos=@newqos -- \
-        --id=@newqos create qos type=egress-policer other-config:cir=46000000 \
-        other-config:cbs=2048`
+        --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`
+
+To direct packets to queues, run::
+
+    $ 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
 
 To examine the QoS configuration of the port, run::