get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 29817,
    "url": "https://patches.dpdk.org/api/patches/29817/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1507301136-131382-3-git-send-email-cristian.dumitrescu@intel.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": "<1507301136-131382-3-git-send-email-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1507301136-131382-3-git-send-email-cristian.dumitrescu@intel.com",
    "date": "2017-10-06T14:45:33",
    "name": "[dpdk-dev,V3,2/5] ethdev: add new eth_dev_ops function for mtr ops get",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "45e460566c24c8ff36afc2955ac8a294bd706e7c",
    "submitter": {
        "id": 19,
        "url": "https://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1507301136-131382-3-git-send-email-cristian.dumitrescu@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/29817/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/29817/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 4C4E41B206;\n\tFri,  6 Oct 2017 16:45:47 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 371C11B1A5\n\tfor <dev@dpdk.org>; Fri,  6 Oct 2017 16:45:44 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Oct 2017 07:45:43 -0700",
            "from silpixa00382658.ir.intel.com ([10.237.223.29])\n\tby orsmga003.jf.intel.com with ESMTP; 06 Oct 2017 07:45:41 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.42,483,1500966000\"; d=\"scan'208\";\n\ta=\"1022423833\"",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, adrien.mazarguil@6wind.com, jingjing.wu@intel.com, \n\themant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com,\n\tjasvinder.singh@intel.com",
        "Date": "Fri,  6 Oct 2017 15:45:33 +0100",
        "Message-Id": "<1507301136-131382-3-git-send-email-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1507301136-131382-1-git-send-email-cristian.dumitrescu@intel.com>",
        "References": "<1507208974-180500-2-git-send-email-cristian.dumitrescu@intel.com>\n\t<1507301136-131382-1-git-send-email-cristian.dumitrescu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH V3 2/5] ethdev: add new eth_dev_ops function for\n\tmtr ops get",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "Following similar approach as rte_flow and rte_tm for modularity reasons,\nthe ops for the new rte_mtr API are retrieved through a new eth_dev_ops\nfunction.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\nChanges in v3:\n- None\n\nChanges in v2:\n-None\n\nChanges in v1 (from RFC [1]):\n- Removed ethdev API function to get the MTR ops, as it is not needed\n  (input from Thomas)\n\n[1] RFC: http://www.dpdk.org/ml/archives/dev/2017-May/066888.html\n\n lib/librte_ether/rte_ethdev.h | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 99cdd54..a5802b0 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1424,6 +1424,9 @@ typedef int (*eth_filter_ctrl_t)(struct rte_eth_dev *dev,\n typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops);\n /**< @internal Get Traffic Management (TM) operations on an Ethernet device */\n \n+typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops);\n+/**< @internal Get Trafffic Metering and Policing (MTR) operations */\n+\n typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev,\n \t\t\t\t struct rte_eth_dcb_info *dcb_info);\n /**< @internal Get dcb information on an Ethernet device */\n@@ -1548,6 +1551,9 @@ struct eth_dev_ops {\n \n \teth_tm_ops_get_t tm_ops_get;\n \t/**< Get Traffic Management (TM) operations. */\n+\n+\teth_mtr_ops_get_t mtr_ops_get;\n+\t/**< Get Traffic Metering and Policing (MTR) operations. */\n };\n \n /**\n",
    "prefixes": [
        "dpdk-dev",
        "V3",
        "2/5"
    ]
}