get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 49976,
    "url": "https://patches.dpdk.org/api/patches/49976/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1548060103-408472-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": "<1548060103-408472-1-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1548060103-408472-1-git-send-email-andy.pei@intel.com",
    "date": "2019-01-21T08:41:43",
    "name": "bus/ifpga: add a shared data structure to struct rte_afu_device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "65e46bc7186e1e756efe53d8fe569f2c3e5095c1",
    "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/1548060103-408472-1-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 3277,
            "url": "https://patches.dpdk.org/api/series/3277/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3277",
            "date": "2019-01-21T08:41:43",
            "name": "bus/ifpga: add a shared data structure to struct rte_afu_device",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/3277/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/49976/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/49976/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 6FD264F9A;\n\tMon, 21 Jan 2019 09:44:11 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id E48CB1150;\n\tMon, 21 Jan 2019 09:44:09 +0100 (CET)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Jan 2019 00:44:08 -0800",
            "from dipei-st-npg.sh.intel.com ([10.67.110.220])\n\tby orsmga007.jf.intel.com with ESMTP; 21 Jan 2019 00:44:07 -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,502,1539673200\"; d=\"scan'208\";a=\"108541053\"",
        "From": "Andy Pei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "rosen.xu@intel.com,\n\tandy.pei@intel.com,\n\tstable@dpdk.org",
        "Date": "Mon, 21 Jan 2019 16:41:43 +0800",
        "Message-Id": "<1548060103-408472-1-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dpdk-dev] [PATCH] bus/ifpga: add a shared data structure to struct\n\trte_afu_device",
        "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": "Add a data structure rte_afu_shared to data structure rte_afu_device.\nStruct rte_afu_shared contains a rte_spinlock_t and a void pointer.\nThis struct rte_afu_shared will be used in net/vbng.\n\nFixes: 05fa3d4a6539 (\"bus/ifpga: add Intel FPGA bus library\")\nCc: rosen.xu@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/bus/ifpga/rte_bus_ifpga.h | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h\nindex 0bf43ba..820eeaa 100644\n--- a/drivers/bus/ifpga/rte_bus_ifpga.h\n+++ b/drivers/bus/ifpga/rte_bus_ifpga.h\n@@ -17,6 +17,7 @@\n \n #include <rte_bus.h>\n #include <rte_pci.h>\n+#include <rte_spinlock.h>\n \n /** Name of Intel FPGA Bus */\n #define IFPGA_BUS_NAME ifpga\n@@ -60,6 +61,11 @@ struct rte_afu_pr_conf {\n \n #define AFU_PRI_STR_SIZE (PCI_PRI_STR_SIZE + 8)\n \n+struct rte_afu_shared {\n+\trte_spinlock_t lock;\n+\tvoid *data;\n+};\n+\n /**\n  * A structure describing a AFU device.\n  */\n@@ -71,6 +77,7 @@ struct rte_afu_device {\n \tuint32_t num_region;   /**< number of regions found */\n \tstruct rte_mem_resource mem_resource[PCI_MAX_RESOURCE];\n \t\t\t\t\t\t/**< AFU Memory Resource */\n+\tstruct rte_afu_shared shared;\n \tstruct rte_intr_handle intr_handle;     /**< Interrupt handle */\n \tstruct rte_afu_driver *driver;          /**< Associated driver */\n \tchar path[IFPGA_BUS_BITSTREAM_PATH_MAX_LEN];\n",
    "prefixes": []
}