From patchwork Thu Jul 20 08:38:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhaozhanxu X-Patchwork-Id: 791502 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="WRvlNlRV"; 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 3xCnmH5q54z9s81 for ; Thu, 20 Jul 2017 18:55:27 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 79F2FA7B; Thu, 20 Jul 2017 08:54:16 +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 47F9E970 for ; Thu, 20 Jul 2017 08:54:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from m50-132.163.com (m50-132.163.com [123.125.50.132]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 68603CD for ; Thu, 20 Jul 2017 08:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Me8e3s/dq0LcZeECTk UiL6UNgQpK/Gzbz2+L9L1Wpy0=; b=WRvlNlRV5bHXwGMNYoO7d3JMJKjXluwGEa On6iHxvFWvbClPdRSV8Y8KjmlvzX7Os8ZvaMdUnqojNuppM79eV8tiEA8JsFRKGz YaJ0WDUKViapJzNotprC7f0cCe6+8NoV7zQEOijpzfHZXVB6kNECf1GTDTQaVAHC 4Y6eUxyPI= Received: from localhost.localdomain (unknown [107.155.53.100]) by smtp2 (Coremail) with SMTP id DNGowABX61AbbHBZQJRkAg--.14S6; Thu, 20 Jul 2017 16:39:07 +0800 (CST) From: zhaozhanxu To: ovs-dev@openvswitch.org Date: Thu, 20 Jul 2017 16:38:49 +0800 Message-Id: <1500539929-24116-5-git-send-email-zhaozhanxu@163.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500539929-24116-1-git-send-email-zhaozhanxu@163.com> References: <1500539929-24116-1-git-send-email-zhaozhanxu@163.com> X-CM-TRANSID: DNGowABX61AbbHBZQJRkAg--.14S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7Gr4xGr17Ww17Gw43Jr1DKFg_yoW8Jr4xpa yfJFyIga1vyr45AaySyFyxXFy7JF97KF13uFs2qw13Ka1DA3yvyr98Kr1aqF1fWr97Jas5 XryrKFWFgwnrAaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U3hLnUUUUU= X-Originating-IP: [107.155.53.100] X-CM-SenderInfo: p2kd06xkdq53i6rwjhhfrp/1tbiLAsbqFXlk0hEegAAsB X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_BL_SPAMCOP_NET, RP_MATCHES_RCVD autolearn=no 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 4/4] 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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst index af01d3e..bb60f83 100644 --- a/Documentation/howto/dpdk.rst +++ b/Documentation/howto/dpdk.rst @@ -126,8 +126,16 @@ 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=@q0 create queue other-config:cir=12800000 other-config:cbs=2048 -- \ + --id=@q2 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::