From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id F356A1B1D4 for ; Wed, 21 Feb 2018 15:14:36 +0100 (CET) Received: by mail-lf0-f66.google.com with SMTP id f19so2574663lfg.0 for ; Wed, 21 Feb 2018 06:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+dE+TY8NQQmPf60+SgCe3+hUuC0PrHN8IcMckVdbQYA=; b=n02iK8tChWkcXDb0I28SG9pDCrIrMBi0A63oMIpKX2umdpvSQBh6jBjx2iy9veD2Fw VVvQbVoMaN51mJz/+jhm4RLoXWFnMKCCBAbYVuMWlCBxQ38h/KLwcxu2F6UOTV5HfY59 sOloopsHnOVLHQo8YjbNU7ySmJNFFRI+ACm52p3/A81vKJtV1EZ8s9Vu1WQngvxFdByR JX7KtMjcC8gR527RvmdktofUaVJKqmHTiFENha54IAy+BEJwJwD7O7CJoAMIEHEFLmAi 9S1YtUqq5hCNOMg5fXWr7b3seoCP07K5oYVRU3YjlKi54llUNJ7UdW4pVSy09Dhc2igt tfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+dE+TY8NQQmPf60+SgCe3+hUuC0PrHN8IcMckVdbQYA=; b=KIR9y9VNQc9qKcbAKxjM2CF3zho79dXNepnPdmGBQWAQBYTfVtpRE0ZmY/zrxWXJox jGXpy+ujdYX2XnxoXFmd18KYHZtCjwHBApehqhA+Jgo+TgKZD1ku7AytW9sqvEZCyInT 0csKG3Ux1lwh1K+x5vDbKd6Ucuokqp07tpuuEYY43Q4Jd8dHIhW3Amf6i/Wv/vKszXqz WPNUu5I36MB2fueIYY7KTvNp/PGohP7EPHaf7Cn05BN9kgHmPu2aWP8Lb8ylVVhWVgIJ rkya2NiQhah6ETwsbzRIMkJDcfp1QaqUOisrr3eWlD83E2AKOpJQXQKkasqglAeTxSL7 /DJQ== X-Gm-Message-State: APf1xPCF+DCT1kx9ijEcaOeOdZGtuimjewd4bNpDV0ALauZ1JtuSS6Qr gjWqiJ0AxgPS+KZ2rgumGSCbDeuxsbk= X-Google-Smtp-Source: AH8x224Kndjse3dL4vgsS0K8YPyXvVlm6nQz2JCk/ImM98ZFn6kLU2iF0HTGnSj4wFsDXnFAWVc/yg== X-Received: by 10.25.17.73 with SMTP id g70mr2648873lfi.0.1519222476413; Wed, 21 Feb 2018 06:14:36 -0800 (PST) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id e27sm5038177lff.89.2018.02.21.06.14.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 06:14:35 -0800 (PST) From: Tomasz Duszynski To: dev@dpdk.org Cc: mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, jck@semihalf.com, Tomasz Duszynski Date: Wed, 21 Feb 2018 15:14:16 +0100 Message-Id: <1519222460-14605-5-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519222460-14605-1-git-send-email-tdu@semihalf.com> References: <1519222460-14605-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 4/8] net/mrvl: document policer/scheduler/rate limiter usage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 14:14:37 -0000 Add documentation and example for ingress policer, egress scheduler and egress rate limiter. Signed-off-by: Natalie Samsonov Signed-off-by: Tomasz Duszynski --- doc/guides/nics/mrvl.rst | 86 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 80 insertions(+), 6 deletions(-) diff --git a/doc/guides/nics/mrvl.rst b/doc/guides/nics/mrvl.rst index b7f3292..6794cbb 100644 --- a/doc/guides/nics/mrvl.rst +++ b/doc/guides/nics/mrvl.rst @@ -149,17 +149,36 @@ Configuration syntax [port default] default_tc = mapping_priority = + policer_enable = + token_unit = + color = + cir = + ebs = + cbs = + + rate_limit_enable = + rate_limit = + burst_size = [port tc ] rxq = pcp = dscp = + default_color = [port tc ] rxq = pcp = dscp = + [port txq ] + sched_mode = + wrr_weight = + + rate_limit_enable = + rate_limit = + burst_size = + Where: - ````: DPDK Port number (0..n). @@ -176,6 +195,30 @@ Where: - ````: List of DSCP values to handle in particular TC (e.g. 0-12 32-48 63). +- ````: Enable ingress policer. + +- ````: Policer token unit (`bytes` or `packets`). + +- ````: Policer color mode (`aware` or `blind`). + +- ````: Committed information rate in unit of kilo bits per second (data rate) or packets per second. + +- ````: Committed burst size in unit of kilo bytes or number of packets. + +- ````: Excess burst size in unit of kilo bytes or number of packets. + +- ````: Default color for specific tc. + +- ````: Enables per port or per txq rate limiting. + +- ````: Committed information rate, in kilo bits per second. + +- ````: Committed burst size, in kilo bytes. + +- ````: Egress scheduler mode (`wrr` or `sp`). + +- ````: Txq weight. + Setting PCP/DSCP values for the default TC is not required. All PCP/DSCP values not assigned explicitly to particular TC will be handled by the default TC. @@ -187,11 +230,26 @@ Configuration file example [port 0 default] default_tc = 0 - qos_mode = ip + mapping_priority = ip + + rate_limit_enable = 1 + rate_limit = 1000 + burst_size = 2000 [port 0 tc 0] rxq = 0 1 + [port 0 txq 0] + sched_mode = wrr + wrr_weight = 10 + + [port 0 txq 1] + sched_mode = wrr + wrr_weight = 100 + + [port 0 txq 2] + sched_mode = sp + [port 0 tc 1] rxq = 2 pcp = 5 6 7 @@ -199,15 +257,31 @@ Configuration file example [port 1 default] default_tc = 0 - qos_mode = vlan/ip + mapping_priority = vlan/ip + + policer_enable = 1 + token_unit = bytes + color = blind + cir = 100000 + ebs = 64 + cbs = 64 [port 1 tc 0] rxq = 0 + dscp = 10 [port 1 tc 1] - rxq = 1 2 - pcp = 5 6 7 - dscp = 26-38 + rxq = 1 + dscp = 11-20 + + [port 1 tc 2] + rxq = 2 + dscp = 30 + + [port 1 txq 0] + rate_limit_enable = 1 + rate_limit = 10000 + burst_size = 2000 Usage example ^^^^^^^^^^^^^ @@ -215,7 +289,7 @@ Usage example .. code-block:: console ./testpmd --vdev=eth_mrvl,iface=eth0,iface=eth2,cfg=/home/user/mrvl.conf \ - -c 7 -- -i -a --rxq=2 + -c 7 -- -i -a --disable-hw-vlan-strip --rxq=3 --txq=3 Building DPDK -- 2.7.4