get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 12457,
    "url": "http://patches.dpdk.org/api/patches/12457/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/99991ceaae3c8ead727fb43d78dd62670214e573.1462519635.git.rahul.lakkireddy@chelsio.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": "<99991ceaae3c8ead727fb43d78dd62670214e573.1462519635.git.rahul.lakkireddy@chelsio.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/99991ceaae3c8ead727fb43d78dd62670214e573.1462519635.git.rahul.lakkireddy@chelsio.com",
    "date": "2016-05-06T07:43:15",
    "name": "[dpdk-dev,1/5] pci: fix access to PCI config space in bsd",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1fd01aa786bcf11deb759c856c1c802422f01db3",
    "submitter": {
        "id": 241,
        "url": "http://patches.dpdk.org/api/people/241/?format=api",
        "name": "Rahul Lakkireddy",
        "email": "rahul.lakkireddy@chelsio.com"
    },
    "delegate": {
        "id": 10,
        "url": "http://patches.dpdk.org/api/users/10/?format=api",
        "username": "bruce",
        "first_name": "Bruce",
        "last_name": "Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/99991ceaae3c8ead727fb43d78dd62670214e573.1462519635.git.rahul.lakkireddy@chelsio.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/12457/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/12457/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 3CA19532E;\n\tFri,  6 May 2016 09:44:51 +0200 (CEST)",
            "from stargate3.asicdesigners.com (stargate.chelsio.com\n\t[12.32.117.8]) by dpdk.org (Postfix) with ESMTP id B36D7530A\n\tfor <dev@dpdk.org>; Fri,  6 May 2016 09:44:49 +0200 (CEST)",
            "from localhost (scalar.blr.asicdesigners.com [10.193.185.94])\n\tby stargate3.asicdesigners.com (8.13.8/8.13.8) with ESMTP id\n\tu467ik39026321; Fri, 6 May 2016 00:44:47 -0700"
        ],
        "From": "Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>",
        "To": "dev@dpdk.org",
        "Cc": "Kumar Sanghvi <kumaras@chelsio.com>,\n\tNirranjan Kirubaharan <nirranjan@chelsio.com>",
        "Date": "Fri,  6 May 2016 13:13:15 +0530",
        "Message-Id": "<99991ceaae3c8ead727fb43d78dd62670214e573.1462519635.git.rahul.lakkireddy@chelsio.com>",
        "X-Mailer": "git-send-email 2.5.3",
        "In-Reply-To": [
            "<cover.1462519635.git.rahul.lakkireddy@chelsio.com>",
            "<cover.1462519635.git.rahul.lakkireddy@chelsio.com>"
        ],
        "References": [
            "<cover.1462519635.git.rahul.lakkireddy@chelsio.com>",
            "<cover.1462519635.git.rahul.lakkireddy@chelsio.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 1/5] pci: fix access to PCI config space in bsd",
        "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": "PCIOCREAD and PCIOCWRITE ioctls to read/write PCI config space fail\nwith EPERM due to missing write permission.  Fix by opening /dev/pci/\nwith O_RDWR instead.\n\nFixes: 632b2d1deeed (\"eal: provide functions to access PCI config\")\n\nSigned-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>\nSigned-off-by: Kumar Sanghvi <kumaras@chelsio.com>\n---\n lib/librte_eal/bsdapp/eal/eal_pci.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c\nindex 2d16d78..82330be 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_pci.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_pci.c\n@@ -422,7 +422,7 @@ int rte_eal_pci_read_config(const struct rte_pci_device *dev,\n \t\tgoto error;\n \t}\n \n-\tfd = open(\"/dev/pci\", O_RDONLY);\n+\tfd = open(\"/dev/pci\", O_RDWR);\n \tif (fd < 0) {\n \t\tRTE_LOG(ERR, EAL, \"%s(): error opening /dev/pci\\n\", __func__);\n \t\tgoto error;\n@@ -466,7 +466,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *dev,\n \n \tmemcpy(&pi.pi_data, buf, len);\n \n-\tfd = open(\"/dev/pci\", O_RDONLY);\n+\tfd = open(\"/dev/pci\", O_RDWR);\n \tif (fd < 0) {\n \t\tRTE_LOG(ERR, EAL, \"%s(): error opening /dev/pci\\n\", __func__);\n \t\tgoto error;\n",
    "prefixes": [
        "dpdk-dev",
        "1/5"
    ]
}