get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7476,
    "url": "https://patches.dpdk.org/api/patches/7476/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/CA+JyDZRF=1yZnG9nFyQ0wtB3ApK8ufgun9vUvAEbnfxczOin2A@mail.gmail.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": "<CA+JyDZRF=1yZnG9nFyQ0wtB3ApK8ufgun9vUvAEbnfxczOin2A@mail.gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/CA+JyDZRF=1yZnG9nFyQ0wtB3ApK8ufgun9vUvAEbnfxczOin2A@mail.gmail.com",
    "date": "2015-10-07T17:27:34",
    "name": "[dpdk-dev] Fwd: [PATCH] em: enable flash access, tested with Intel 82577LM",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "eb4a30de4e564bc9a9b23aa0ab0921195509e62f",
    "submitter": {
        "id": 343,
        "url": "https://patches.dpdk.org/api/people/343/?format=api",
        "name": "Jiuling Bie",
        "email": "bie.jiuling@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/CA+JyDZRF=1yZnG9nFyQ0wtB3ApK8ufgun9vUvAEbnfxczOin2A@mail.gmail.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7476/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7476/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id A6B7969C8;\n\tWed,  7 Oct 2015 19:27:36 +0200 (CEST)",
            "from mail-io0-f170.google.com (mail-io0-f170.google.com\n\t[209.85.223.170]) by dpdk.org (Postfix) with ESMTP id C8DAB5A49\n\tfor <dev@dpdk.org>; Wed,  7 Oct 2015 19:27:34 +0200 (CEST)",
            "by iofh134 with SMTP id h134so30538088iof.0\n\tfor <dev@dpdk.org>; Wed, 07 Oct 2015 10:27:34 -0700 (PDT)",
            "by 10.107.4.149 with HTTP; Wed, 7 Oct 2015 10:27:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=mime-version:in-reply-to:references:date:message-id:subject:from:to\n\t:content-type; bh=xMMaFjEoIVzViE2oeAPKTOjgjho1ez578P3fwz1vKos=;\n\tb=k/v8e+biG488d9VxfcnZaINYvxAb0pewAzAbRNOWOKAYBA5DL8TUcWoxLaNdS2WABh\n\tnI/jLaTh0aanaV43rrBGwT0AB2Wo8DyNWT7P4qd2iHUK8OwxoNVznJj4ciX/RqqiA+KG\n\tbje065AUp+w3KJYxpWtM4mA7eeErjEH02njSqPO2/I9NN/1mDut3GRGdBGTppD3EbS8w\n\tpB3hay5QJcLfpeINPx9sN+f8KG+lQBzECvrbDIGg3NTyQX/mqwF9RKwSAOXVHSql4QNC\n\tEpb0Q+sbarSJ478XsJtwI12623KWik4S/5vFctcD/niTLJJwto4r8bfil4eg8t1n0lxQ\n\ttOCg==",
        "MIME-Version": "1.0",
        "X-Received": "by 10.107.134.24 with SMTP id i24mr3399910iod.162.1444238854203; \n\tWed, 07 Oct 2015 10:27:34 -0700 (PDT)",
        "In-Reply-To": "<1444142686-2579-1-git-send-email-bie.jiuling@gmail.com>",
        "References": "<1444142686-2579-1-git-send-email-bie.jiuling@gmail.com>",
        "Date": "Wed, 7 Oct 2015 13:27:34 -0400",
        "Message-ID": "<CA+JyDZRF=1yZnG9nFyQ0wtB3ApK8ufgun9vUvAEbnfxczOin2A@mail.gmail.com>",
        "From": "Jiuling Bie <bie.jiuling@gmail.com>",
        "To": "dev@dpdk.org",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Content-Filtered-By": "Mailman/MimeDel 2.1.15",
        "Subject": "[dpdk-dev] Fwd: [PATCH] em: enable flash access,\n\ttested with Intel 82577LM",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <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": "---\n drivers/net/e1000/base/e1000_osdep.h            | 18 ++++++++----------\n drivers/net/e1000/em_ethdev.c                   |  1 +\n lib/librte_eal/common/include/rte_pci_dev_ids.h |  1 +\n 3 files changed, 10 insertions(+), 10 deletions(-)\n\n /******************** Physical IGB devices from e1000_hw.h\n********************/\n--\n1.9.1",
    "diff": "diff --git a/drivers/net/e1000/base/e1000_osdep.h\nb/drivers/net/e1000/base/e1000_osdep.h\nindex d04ec73..ed08441 100644\n--- a/drivers/net/e1000/base/e1000_osdep.h\n+++ b/drivers/net/e1000/base/e1000_osdep.h\n@@ -155,21 +155,19 @@ static inline uint32_t e1000_read_addr(volatile void*\naddr)\n #define E1000_WRITE_REG_IO(hw, reg, value) \\\n        E1000_WRITE_REG(hw, reg, value)\n\n-/*\n- * Not implemented.\n- */\n-\n #define E1000_READ_FLASH_REG(hw, reg) \\\n-       (E1000_ACCESS_PANIC(E1000_READ_FLASH_REG, hw, reg, 0), 0)\n+       rte_le_to_cpu_32(*(volatile uint32_t *)(hw->flash_address + reg))\n\n #define E1000_READ_FLASH_REG16(hw, reg)  \\\n-       (E1000_ACCESS_PANIC(E1000_READ_FLASH_REG16, hw, reg, 0), 0)\n+       rte_le_to_cpu_16(*(volatile uint16_t *)(hw->flash_address + reg))\n\n-#define E1000_WRITE_FLASH_REG(hw, reg, value)  \\\n-       E1000_ACCESS_PANIC(E1000_WRITE_FLASH_REG, hw, reg, value)\n+#define E1000_WRITE_FLASH_REG(hw, reg, value) do { \\\n+       *(volatile uint32_t *)(hw->flash_address + reg) =\nrte_cpu_to_le_32(value); \\\n+} while (0)\n\n-#define E1000_WRITE_FLASH_REG16(hw, reg, value) \\\n-       E1000_ACCESS_PANIC(E1000_WRITE_FLASH_REG16, hw, reg, value)\n+#define E1000_WRITE_FLASH_REG16(hw, reg, value) do { \\\n+       *(volatile uint16_t *)(hw->flash_address + reg) =\nrte_cpu_to_le_16(value); \\\n+} while (0)\n\n #define STATIC static\n\ndiff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c\nindex 912f5dd..dd82bad 100644\n--- a/drivers/net/e1000/em_ethdev.c\n+++ b/drivers/net/e1000/em_ethdev.c\n@@ -247,6 +247,7 @@ eth_em_dev_init(struct rte_eth_dev *eth_dev)\n        }\n\n        hw->hw_addr = (void *)pci_dev->mem_resource[0].addr;\n+       hw->flash_address = (void *)pci_dev->mem_resource[1].addr;\n        hw->device_id = pci_dev->id.device_id;\n        adapter->stopped = 0;\n\ndiff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h\nb/lib/librte_eal/common/include/rte_pci_dev_ids.h\nindex 265e66c..071cf8a 100644\n--- a/lib/librte_eal/common/include/rte_pci_dev_ids.h\n+++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h\n@@ -304,6 +304,7 @@ RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL,\nE1000_DEV_ID_82572EI)\n RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82573L)\n RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82574L)\n RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82574LA)\n+RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_PCH_M_HV_LM)\n RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82583V)\n\n",
    "prefixes": [
        "dpdk-dev"
    ]
}