get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 49775,
    "url": "https://patches.dpdk.org/api/patches/49775/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1547430067-63007-1-git-send-email-andy.pei@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": "<1547430067-63007-1-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1547430067-63007-1-git-send-email-andy.pei@intel.com",
    "date": "2019-01-14T01:41:07",
    "name": "[DPDK] /driver/bus/ifpga: users do not have to input afu_bts in cmdline",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f23c31912adfea91b0cfdf74cdefba501bfdca62",
    "submitter": {
        "id": 1185,
        "url": "https://patches.dpdk.org/api/people/1185/?format=api",
        "name": "Pei, Andy",
        "email": "andy.pei@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1547430067-63007-1-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 3150,
            "url": "https://patches.dpdk.org/api/series/3150/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3150",
            "date": "2019-01-14T01:41:07",
            "name": "[DPDK] /driver/bus/ifpga: users do not have to input afu_bts in cmdline",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/3150/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/49775/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/49775/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 C7A1C1B48D;\n\tMon, 14 Jan 2019 02:42:27 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id 30DBA1B48B\n\tfor <dev@dpdk.org>; Mon, 14 Jan 2019 02:42:26 +0100 (CET)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Jan 2019 17:42:25 -0800",
            "from dipei-st-npg.sh.intel.com ([10.67.110.220])\n\tby orsmga005.jf.intel.com with ESMTP; 13 Jan 2019 17:42:24 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.56,475,1539673200\"; d=\"scan'208\";a=\"291287406\"",
        "From": "AndyPei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "rosen.xu@intel.com,\n\ttianfei.zhang@intel.com,\n\tandy.pei@intel.com",
        "Date": "Mon, 14 Jan 2019 09:41:07 +0800",
        "Message-Id": "<1547430067-63007-1-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dpdk-dev] [DPDK] /driver/bus/ifpga: users do not have to input\n\tafu_bts in cmdline",
        "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": "Original driver requires users to input \"afu_bts\" args.\nAfter apply this patch, driver can also work without a\n\"afu_bts\" args explicitly in the cmdline.\n\nfixes: 05fa3d4a6539\ncc: rosen.xu@intel.com\ncc: tianfei.zhang@intel.com\ncc: andy.pei@intel.com\n\nSigned-off-by: AndyPei <andy.pei@intel.com>\n---\n drivers/bus/ifpga/ifpga_bus.c | 6 ++----\n 1 file changed, 2 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c\nindex 5f23ed8..e4b7b6f 100644\n--- a/drivers/bus/ifpga/ifpga_bus.c\n+++ b/drivers/bus/ifpga/ifpga_bus.c\n@@ -125,15 +125,13 @@ void rte_ifpga_driver_unregister(struct rte_afu_driver *driver)\n \t\t\t\t     IFPGA_AFU_BTS);\n \t\t\tgoto end;\n \t\t}\n+\t\tafu_pr_conf.pr_enable = 1;\n \t} else {\n-\t\tIFPGA_BUS_ERR(\"arg %s is mandatory for ifpga bus\",\n-\t\t\t  IFPGA_AFU_BTS);\n-\t\tgoto end;\n+\t\tafu_pr_conf.pr_enable = 0;\n \t}\n \n \tafu_pr_conf.afu_id.uuid.uuid_low = 0;\n \tafu_pr_conf.afu_id.uuid.uuid_high = 0;\n-\tafu_pr_conf.pr_enable = path?1:0;\n \n \tif (ifpga_find_afu_dev(rawdev, &afu_pr_conf.afu_id))\n \t\tgoto end;\n",
    "prefixes": [
        "DPDK"
    ]
}