get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52149,
    "url": "http://patches.dpdk.org/api/patches/52149/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1554281204-19196-3-git-send-email-rosen.xu@intel.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": "<1554281204-19196-3-git-send-email-rosen.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1554281204-19196-3-git-send-email-rosen.xu@intel.com",
    "date": "2019-04-03T08:46:32",
    "name": "[v4,02/14] drivers/bus/ifpga: add function for AFU search by name",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b431c30cddb6a46ada8cf7b63688b4c7c90349c1",
    "submitter": {
        "id": 946,
        "url": "http://patches.dpdk.org/api/people/946/?format=api",
        "name": "Xu, Rosen",
        "email": "rosen.xu@intel.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/1554281204-19196-3-git-send-email-rosen.xu@intel.com/mbox/",
    "series": [
        {
            "id": 4077,
            "url": "http://patches.dpdk.org/api/series/4077/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4077",
            "date": "2019-04-03T08:46:30",
            "name": "Add patch set for IPN3KE",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/4077/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52149/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/52149/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 23B4C8E76;\n\tWed,  3 Apr 2019 10:45:51 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 5AA347CCA\n\tfor <dev@dpdk.org>; Wed,  3 Apr 2019 10:45:49 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Apr 2019 01:45:49 -0700",
            "from dpdkx8602.sh.intel.com ([10.67.110.200])\n\tby orsmga001.jf.intel.com with ESMTP; 03 Apr 2019 01:45:47 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,304,1549958400\"; d=\"scan'208\";a=\"220102434\"",
        "From": "Rosen Xu <rosen.xu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, tianfei.zhang@intel.com, dan.wei@intel.com,\n\trosen.xu@intel.com, andy.pei@intel.com, qiming.yang@intel.com,\n\thaiyue.wang@intel.com, santos.chen@intel.com, zhang.zhang@intel.com",
        "Date": "Wed,  3 Apr 2019 16:46:32 +0800",
        "Message-Id": "<1554281204-19196-3-git-send-email-rosen.xu@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1554281204-19196-1-git-send-email-rosen.xu@intel.com>",
        "References": "<1551338000-120348-1-git-send-email-rosen.xu@intel.com>\n\t<1554281204-19196-1-git-send-email-rosen.xu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 02/14] drivers/bus/ifpga: add function for AFU\n\tsearch by name",
        "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://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "In many scenarios, AFU is needed searched by name, this\nfunction add the feature.\n\nSigned-off-by: Rosen Xu <rosen.xu@intel.com>\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/bus/ifpga/ifpga_bus.c               | 13 +++++++++++++\n drivers/bus/ifpga/rte_bus_ifpga.h           |  9 +++++++++\n drivers/bus/ifpga/rte_bus_ifpga_version.map |  3 ++-\n 3 files changed, 24 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c\nindex 55d3abf..dfd6b1f 100644\n--- a/drivers/bus/ifpga/ifpga_bus.c\n+++ b/drivers/bus/ifpga/ifpga_bus.c\n@@ -73,6 +73,19 @@ void rte_ifpga_driver_unregister(struct rte_afu_driver *driver)\n \treturn NULL;\n }\n \n+struct rte_afu_device *\n+rte_ifpga_find_afu_by_name(const char *name)\n+{\n+\tstruct rte_afu_device *afu_dev = NULL;\n+\n+\tTAILQ_FOREACH(afu_dev, &ifpga_afu_dev_list, next) {\n+\t\tif (afu_dev &&\n+\t\t\t!strcmp(afu_dev->device.name, name))\n+\t\t\treturn afu_dev;\n+\t}\n+\treturn NULL;\n+}\n+\n static const char * const valid_args[] = {\n #define IFPGA_ARG_NAME         \"ifpga\"\n \tIFPGA_ARG_NAME,\ndiff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h\nindex 820eeaa..88a6289 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga.h\n+++ b/drivers/bus/ifpga/rte_bus_ifpga.h\n@@ -120,6 +120,15 @@ struct rte_afu_driver {\n }\n \n /**\n+ * Find AFU by AFU name.\n+ *\n+ * @param name\n+ *   A pointer to AFU name string.\n+ */\n+struct rte_afu_device *\n+rte_ifpga_find_afu_by_name(const char *name);\n+\n+/**\n  * Register a ifpga afu device driver.\n  *\n  * @param driver\ndiff --git a/drivers/bus/ifpga/rte_bus_ifpga_version.map b/drivers/bus/ifpga/rte_bus_ifpga_version.map\nindex a027979..8f9b781 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga_version.map\n+++ b/drivers/bus/ifpga/rte_bus_ifpga_version.map\n@@ -1,6 +1,7 @@\n-DPDK_18.05 {\n+DPDK_19.05 {\n \tglobal:\n \n+\trte_ifpga_find_afu_by_name;\n \trte_ifpga_get_integer32_arg;\n \trte_ifpga_get_string_arg;\n \trte_ifpga_driver_register;\n",
    "prefixes": [
        "v4",
        "02/14"
    ]
}