get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87165,
    "url": "https://patches.dpdk.org/api/patches/87165/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210125012023.1769769-2-lizh@nvidia.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20210125012023.1769769-2-lizh@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210125012023.1769769-2-lizh@nvidia.com",
    "date": "2021-01-25T01:20:23",
    "name": "[RFC,v2] : adds support PPS(packet per second) on meter",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a95a895820805ae6e930408e9747e37132985834",
    "submitter": {
        "id": 1967,
        "url": "https://patches.dpdk.org/api/people/1967/?format=api",
        "name": "Li Zhang",
        "email": "lizh@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210125012023.1769769-2-lizh@nvidia.com/mbox/",
    "series": [
        {
            "id": 14918,
            "url": "https://patches.dpdk.org/api/series/14918/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14918",
            "date": "2021-01-25T01:20:23",
            "name": "[RFC,v2] : adds support PPS(packet per second) on meter",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/14918/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87165/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87165/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id CF308A0A0B;\n\tMon, 25 Jan 2021 02:20:34 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A531B140DD3;\n\tMon, 25 Jan 2021 02:20:33 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 3ECEF140DD2\n for <dev@dpdk.org>; Mon, 25 Jan 2021 02:20:32 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n lizh@nvidia.com)\n with SMTP; 25 Jan 2021 03:20:26 +0200",
            "from nvidia.com (c-235-17-1-009.mtl.labs.mlnx [10.235.17.9])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10P1KQ9p024995;\n Mon, 25 Jan 2021 03:20:26 +0200"
        ],
        "From": "Li Zhang <lizh@nvidia.com>",
        "To": "dekelp@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com,\n matan@nvidia.com",
        "Cc": "dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com",
        "Date": "Mon, 25 Jan 2021 03:20:23 +0200",
        "Message-Id": "<20210125012023.1769769-2-lizh@nvidia.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20210125012023.1769769-1-lizh@nvidia.com>",
        "References": "<20210125010235.1768333-2-lizh@nvidia.com>\n <20210125012023.1769769-1-lizh@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] [RFC,\n v2]: adds support PPS(packet per second) on meter",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Currently the flow Meter algorithms in rte_flow\nonly supports bytes per second(BPS).\nSuch as Single Rate Three Color Marker (srTCM rfc2697)\nThis RFC adds the packet per second definition in\nMeter algorithms structure,\nto support the rte_mtr APIs with type srTCM pps mode.\nThe below structure will be extended:\nrte_mtr_algorithm\nrte_mtr_meter_profile\nSigned-off-by: Li Zhang <lizh@nvidia.com>\n---\n lib/librte_ethdev/rte_mtr.h | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_mtr.h b/lib/librte_ethdev/rte_mtr.h\nindex 916a09c5c3..3e88904faf 100644\n--- a/lib/librte_ethdev/rte_mtr.h\n+++ b/lib/librte_ethdev/rte_mtr.h\n@@ -119,6 +119,9 @@ enum rte_mtr_algorithm {\n \n \t/** Two Rate Three Color Marker (trTCM) - IETF RFC 4115. */\n \tRTE_MTR_TRTCM_RFC4115,\n+\n+\t/** Single Rate Three Color Marker (srTCM) in Packet per second mode */\n+\tRTE_MTR_SRTCM_PPS,\n };\n \n /**\n@@ -171,6 +174,18 @@ struct rte_mtr_meter_profile {\n \t\t\t/** Excess Burst Size (EBS) (bytes). */\n \t\t\tuint64_t ebs;\n \t\t} trtcm_rfc4115;\n+\n+\t\t/** Items only valid when *alg* is set to srTCM - PPS. */\n+\t\tstruct {\n+\t\t\t/** Committed Information Rate (CIR)(packets/second). */\n+\t\t\tuint64_t cir;\n+\n+\t\t\t/** Committed Burst Size (CBS) (bytes). */\n+\t\t\tuint64_t cbs;\n+\n+\t\t\t/** Excess Burst Size (EBS) (bytes). */\n+\t\t\tuint64_t ebs;\n+\t\t} srtcm_pps;\n \t};\n };\n \n@@ -317,6 +332,13 @@ struct rte_mtr_capabilities {\n \t */\n \tuint32_t meter_trtcm_rfc4115_n_max;\n \n+\t/** Maximum number of MTR objects that can have their meter configured\n+\t * to run the srTCM packet per second algorithm. The value of 0\n+\t * indicates this metering algorithm is not supported.\n+\t * The maximum value is *n_max*.\n+\t */\n+\tuint32_t meter_srtcm_pps_n_max;\n+\n \t/** Maximum traffic rate that can be metered by a single MTR object. For\n \t * srTCM RFC 2697, this is the maximum CIR rate. For trTCM RFC 2698,\n \t * this is the maximum PIR rate. For trTCM RFC 4115, this is the maximum\n@@ -342,6 +364,12 @@ struct rte_mtr_capabilities {\n \t */\n \tint color_aware_trtcm_rfc4115_supported;\n \n+\t/**\n+\t * When non-zero, it indicates that color aware mode is supported for\n+\t * the srTCM packet per second  metering algorithm.\n+\t */\n+\tint color_aware_srtcm_pps_supported;\n+\n \t/** When non-zero, it indicates that the policer packet recolor actions\n \t * are supported.\n \t * @see enum rte_mtr_policer_action\n",
    "prefixes": [
        "RFC",
        "v2"
    ]
}