From patchwork Tue Jul 25 02:53:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhaozhanxu X-Patchwork-Id: 793162 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="EiNyEEhh"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xGjvD0XP0z9s72 for ; Tue, 25 Jul 2017 13:11:36 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 63955B01; Tue, 25 Jul 2017 03:09:22 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 6C884A7C for ; Tue, 25 Jul 2017 03:09:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from m50-134.163.com (m50-134.163.com [123.125.50.134]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id CC1D5422 for ; Tue, 25 Jul 2017 03:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=+4WcHwjndCTjtTv35T v+aAF3ZYUJviMWT2zOAnawE3I=; b=EiNyEEhhRrwm3CLSgxeAlmAFl3p6jSE410 y956v8xIb1CjWEa6xrUl1STNiQCW/bMC50Sao1919vKH6yQJRphnLLJAF2EvqYPv Dj4K135VMSu9fxtF2bJyhcDMw6+TDjz3PeW9uT5wNaFIRboid2HHYNVlDNylTzRF EB2VS8dpI= Received: from localhost.localdomain (unknown [107.155.53.100]) by smtp4 (Coremail) with SMTP id DtGowADn3k_BsnZZ5WQVBQ--.789S6; Tue, 25 Jul 2017 10:54:08 +0800 (CST) From: zhaozhanxu To: ovs-dev@openvswitch.org Date: Tue, 25 Jul 2017 10:53:48 +0800 Message-Id: <1500951228-18646-5-git-send-email-zhaozhanxu@163.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500951228-18646-1-git-send-email-zhaozhanxu@163.com> References: <1500951228-18646-1-git-send-email-zhaozhanxu@163.com> X-CM-TRANSID: DtGowADn3k_BsnZZ5WQVBQ--.789S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7XF1rXF1kXF43uF4fCFyDJrb_yoW8Jryxpa yxAFWIga1vvr43Aa1SyFyxXFy7JF97Cr43CFs2qw13Ka1DA3yvyrZ8Kr1aqF1fWr97Ja95 XryrKFWFgwnrA3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UsqXLUUUUU= X-Originating-IP: [107.155.53.100] X-CM-SenderInfo: p2kd06xkdq53i6rwjhhfrp/1tbiuxEgqFO-4+uZRQAAsa X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: zhaozhanxu Subject: [ovs-dev] [PATCH v2 4/4] dpdk.rst: Modify QoS configure documents for ovs-dpdk X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Signed-off-by: zhaozhanxu --- 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 To examine the QoS configuration of the port, run::