get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/35327/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 35327,
    "url": "http://patches.dpdk.org/api/patches/35327/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1519222460-14605-5-git-send-email-tdu@semihalf.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1519222460-14605-5-git-send-email-tdu@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1519222460-14605-5-git-send-email-tdu@semihalf.com",
    "date": "2018-02-21T14:14:16",
    "name": "[dpdk-dev,4/8] net/mrvl: document policer/scheduler/rate limiter usage",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b5999f9f68581053efe8031a8c3288d22e1ea8fb",
    "submitter": {
        "id": 846,
        "url": "http://patches.dpdk.org/api/people/846/?format=api",
        "name": "Tomasz Duszynski",
        "email": "tdu@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1519222460-14605-5-git-send-email-tdu@semihalf.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35327/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35327/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E94A11B297;\n\tWed, 21 Feb 2018 15:14:39 +0100 (CET)",
            "from mail-lf0-f66.google.com (mail-lf0-f66.google.com\n\t[209.85.215.66]) by dpdk.org (Postfix) with ESMTP id F356A1B1D4\n\tfor <dev@dpdk.org>; Wed, 21 Feb 2018 15:14:36 +0100 (CET)",
            "by mail-lf0-f66.google.com with SMTP id f19so2574663lfg.0\n\tfor <dev@dpdk.org>; Wed, 21 Feb 2018 06:14:36 -0800 (PST)",
            "from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\te27sm5038177lff.89.2018.02.21.06.14.35\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 21 Feb 2018 06:14:35 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=+dE+TY8NQQmPf60+SgCe3+hUuC0PrHN8IcMckVdbQYA=;\n\tb=n02iK8tChWkcXDb0I28SG9pDCrIrMBi0A63oMIpKX2umdpvSQBh6jBjx2iy9veD2Fw\n\tVVvQbVoMaN51mJz/+jhm4RLoXWFnMKCCBAbYVuMWlCBxQ38h/KLwcxu2F6UOTV5HfY59\n\tsOloopsHnOVLHQo8YjbNU7ySmJNFFRI+ACm52p3/A81vKJtV1EZ8s9Vu1WQngvxFdByR\n\tJX7KtMjcC8gR527RvmdktofUaVJKqmHTiFENha54IAy+BEJwJwD7O7CJoAMIEHEFLmAi\n\t9S1YtUqq5hCNOMg5fXWr7b3seoCP07K5oYVRU3YjlKi54llUNJ7UdW4pVSy09Dhc2igt\n\ttfIw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=+dE+TY8NQQmPf60+SgCe3+hUuC0PrHN8IcMckVdbQYA=;\n\tb=KIR9y9VNQc9qKcbAKxjM2CF3zho79dXNepnPdmGBQWAQBYTfVtpRE0ZmY/zrxWXJox\n\tjGXpy+ujdYX2XnxoXFmd18KYHZtCjwHBApehqhA+Jgo+TgKZD1ku7AytW9sqvEZCyInT\n\t0csKG3Ux1lwh1K+x5vDbKd6Ucuokqp07tpuuEYY43Q4Jd8dHIhW3Amf6i/Wv/vKszXqz\n\tWPNUu5I36MB2fueIYY7KTvNp/PGohP7EPHaf7Cn05BN9kgHmPu2aWP8Lb8ylVVhWVgIJ\n\trkya2NiQhah6ETwsbzRIMkJDcfp1QaqUOisrr3eWlD83E2AKOpJQXQKkasqglAeTxSL7\n\t/DJQ==",
        "X-Gm-Message-State": "APf1xPCF+DCT1kx9ijEcaOeOdZGtuimjewd4bNpDV0ALauZ1JtuSS6Qr\n\tgjWqiJ0AxgPS+KZ2rgumGSCbDeuxsbk=",
        "X-Google-Smtp-Source": "AH8x224Kndjse3dL4vgsS0K8YPyXvVlm6nQz2JCk/ImM98ZFn6kLU2iF0HTGnSj4wFsDXnFAWVc/yg==",
        "X-Received": "by 10.25.17.73 with SMTP id g70mr2648873lfi.0.1519222476413;\n\tWed, 21 Feb 2018 06:14:36 -0800 (PST)",
        "From": "Tomasz Duszynski <tdu@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, jck@semihalf.com,\n\tTomasz Duszynski <tdu@semihalf.com>",
        "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\n\tlimiter usage",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add documentation and example for ingress policer, egress scheduler\nand egress rate limiter.\n\nSigned-off-by: Natalie Samsonov <nsamsono@marvell.com>\nSigned-off-by: Tomasz Duszynski <tdu@semihalf.com>\n---\n doc/guides/nics/mrvl.rst | 86 ++++++++++++++++++++++++++++++++++++++++++++----\n 1 file changed, 80 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/mrvl.rst b/doc/guides/nics/mrvl.rst\nindex b7f3292..6794cbb 100644\n--- a/doc/guides/nics/mrvl.rst\n+++ b/doc/guides/nics/mrvl.rst\n@@ -149,17 +149,36 @@ Configuration syntax\n    [port <portnum> default]\n    default_tc = <default_tc>\n    mapping_priority = <mapping_priority>\n+   policer_enable = <policer_enable>\n+   token_unit = <token_unit>\n+   color = <color_mode>\n+   cir = <cir>\n+   ebs = <ebs>\n+   cbs = <cbs>\n+\n+   rate_limit_enable = <rate_limit_enable>\n+   rate_limit = <rate_limit>\n+   burst_size = <burst_size>\n \n    [port <portnum> tc <traffic_class>]\n    rxq = <rx_queue_list>\n    pcp = <pcp_list>\n    dscp = <dscp_list>\n+   default_color = <default_color>\n \n    [port <portnum> tc <traffic_class>]\n    rxq = <rx_queue_list>\n    pcp = <pcp_list>\n    dscp = <dscp_list>\n \n+   [port <portnum> txq <txqnum>]\n+   sched_mode = <sched_mode>\n+   wrr_weight = <wrr_weight>\n+\n+   rate_limit_enable = <rate_limit_enable>\n+   rate_limit = <rate_limit>\n+   burst_size = <burst_size>\n+\n Where:\n \n - ``<portnum>``: DPDK Port number (0..n).\n@@ -176,6 +195,30 @@ Where:\n \n - ``<dscp_list>``: List of DSCP values to handle in particular TC (e.g. 0-12 32-48 63).\n \n+- ``<policer_enable>``: Enable ingress policer.\n+\n+- ``<token_unit>``: Policer token unit (`bytes` or `packets`).\n+\n+- ``<color_mode>``: Policer color mode (`aware` or `blind`).\n+\n+- ``<cir>``: Committed information rate in unit of kilo bits per second (data rate) or packets per second.\n+\n+- ``<cbs>``: Committed burst size in unit of kilo bytes or number of packets.\n+\n+- ``<ebs>``: Excess burst size in unit of kilo bytes or number of packets.\n+\n+- ``<default_color>``: Default color for specific tc.\n+\n+- ``<rate_limit_enable>``: Enables per port or per txq rate limiting.\n+\n+- ``<rate_limit>``: Committed information rate, in kilo bits per second.\n+\n+- ``<burst_size>``: Committed burst size, in kilo bytes.\n+\n+- ``<sched_mode>``: Egress scheduler mode (`wrr` or `sp`).\n+\n+- ``<wrr_weight>``: Txq weight.\n+\n Setting PCP/DSCP values for the default TC is not required. All PCP/DSCP\n values not assigned explicitly to particular TC will be handled by the\n default TC.\n@@ -187,11 +230,26 @@ Configuration file example\n \n    [port 0 default]\n    default_tc = 0\n-   qos_mode = ip\n+   mapping_priority = ip\n+\n+   rate_limit_enable = 1\n+   rate_limit = 1000\n+   burst_size = 2000\n \n    [port 0 tc 0]\n    rxq = 0 1\n \n+   [port 0 txq 0]\n+   sched_mode = wrr\n+   wrr_weight = 10\n+\n+   [port 0 txq 1]\n+   sched_mode = wrr\n+   wrr_weight = 100\n+\n+   [port 0 txq 2]\n+   sched_mode = sp\n+\n    [port 0 tc 1]\n    rxq = 2\n    pcp = 5 6 7\n@@ -199,15 +257,31 @@ Configuration file example\n \n    [port 1 default]\n    default_tc = 0\n-   qos_mode = vlan/ip\n+   mapping_priority = vlan/ip\n+\n+   policer_enable = 1\n+   token_unit = bytes\n+   color = blind\n+   cir = 100000\n+   ebs = 64\n+   cbs = 64\n \n    [port 1 tc 0]\n    rxq = 0\n+   dscp = 10\n \n    [port 1 tc 1]\n-   rxq = 1 2\n-   pcp = 5 6 7\n-   dscp = 26-38\n+   rxq = 1\n+   dscp = 11-20\n+\n+   [port 1 tc 2]\n+   rxq = 2\n+   dscp = 30\n+\n+   [port 1 txq 0]\n+   rate_limit_enable = 1\n+   rate_limit = 10000\n+   burst_size = 2000\n \n Usage example\n ^^^^^^^^^^^^^\n@@ -215,7 +289,7 @@ Usage example\n .. code-block:: console\n \n    ./testpmd --vdev=eth_mrvl,iface=eth0,iface=eth2,cfg=/home/user/mrvl.conf \\\n-     -c 7 -- -i -a --rxq=2\n+     -c 7 -- -i -a --disable-hw-vlan-strip --rxq=3 --txq=3\n \n \n Building DPDK\n",
    "prefixes": [
        "dpdk-dev",
        "4/8"
    ]
}