get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 9536,
    "url": "http://patches.dpdk.org/api/patches/9536/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1450098032-21198-11-git-send-email-sshukla@mvista.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": "<1450098032-21198-11-git-send-email-sshukla@mvista.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1450098032-21198-11-git-send-email-sshukla@mvista.com",
    "date": "2015-12-14T13:00:29",
    "name": "[dpdk-dev,[PATCH,v2] 10/13] include/exec-env: ioport: add rte_virt_ioport header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "77584df14062dd49c67b1c4a0738b3fd55ea3a45",
    "submitter": {
        "id": 383,
        "url": "http://patches.dpdk.org/api/people/383/?format=api",
        "name": "Santosh Shukla",
        "email": "sshukla@mvista.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1450098032-21198-11-git-send-email-sshukla@mvista.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/9536/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/9536/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 E2B4191AB;\n\tMon, 14 Dec 2015 14:01:16 +0100 (CET)",
            "from mail-pf0-f170.google.com (mail-pf0-f170.google.com\n\t[209.85.192.170]) by dpdk.org (Postfix) with ESMTP id 1229B91AA\n\tfor <dev@dpdk.org>; Mon, 14 Dec 2015 14:01:15 +0100 (CET)",
            "by pfnn128 with SMTP id n128so105340122pfn.0\n\tfor <dev@dpdk.org>; Mon, 14 Dec 2015 05:01:14 -0800 (PST)",
            "from santosh-Latitude-E5530-non-vPro.mvista.com ([110.172.16.5])\n\tby smtp.gmail.com with ESMTPSA id\n\t9sm42506405pfn.51.2015.12.14.05.01.10\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 14 Dec 2015 05:01:12 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=mvista-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=faMz8xVelF9CAyvCxiuCSkAyRKWJRozuy1FPKNSnJK0=;\n\tb=eib6p2gX82nkxjpB3hdj/Sw6exNJ3nxDbBlulz0OLn1fRiiPTOqqn39lm1yEd4GmCW\n\teVq/haO+HxJg7ly3eS5NeVSmtuYOKYKniDvk1rY04juffHF3di8kdHMqvwXS2NuDyUxf\n\t/bwnCovOGUxkUym8agQ2s/ezJbjeYyw/tV/GcqkUeRiqGG9DzPuMUcLH/pcX9ZJLrx3d\n\tespo9CqnpPHXeIaRF7lFLkSVDsCEcVn3Z1eqRQfC119IV3TJ3Hd0cU1mHCLxgYhD9DmP\n\thKr9ezOGSkYuHcTrBjQT+P/jTyMg+xP3kZECzJRFaoz3K7ppx/SSWmpPpXuomEV0/qRY\n\te1mw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=faMz8xVelF9CAyvCxiuCSkAyRKWJRozuy1FPKNSnJK0=;\n\tb=Jlc8dOibQeIaza67R1uJDzCxTtsq+9vGpC+ZuJYm1pYt0xwgydH6OCtJ6icEVoTZrL\n\tS0oVNjLIFia8ZCIFb+rXj7N1dUZg+B9Kcj41oIOtR1qb7N2lryxvFVKy3xTeZFOzxU6E\n\tV8gSMQNzywPNzZgMsfeIUCGZrp+mX+YQlp3CjeM5U+1wjA1despMcr87P2T5QMZDOkSW\n\tJe6kD4FzrbQjVGn+oe6v5eKf2R1Tv3SDUXGatrWUKaprzcVbxBnEK51kWMJLmP/cm+3z\n\tNC7ra9BjyKR0RKqm5aSObEzS9NkfPz02jprEc6LP7ueWXkGMkQ5dZCVWYGlg8xomF/Go\n\tj2yA==",
        "X-Gm-Message-State": "ALoCoQk30RQW4c23ray7+ekjR4uYGvR1ssPQCLRraHd5eK9u4Ox5QL8XdP5MVtJTI1NZIse0/q3dgHce7NpwkuhTkK5SeJ39HQ==",
        "X-Received": "by 10.98.31.216 with SMTP id l85mr22614343pfj.132.1450098074388; \n\tMon, 14 Dec 2015 05:01:14 -0800 (PST)",
        "From": "Santosh Shukla <sshukla@mvista.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 14 Dec 2015 18:30:29 +0530",
        "Message-Id": "<1450098032-21198-11-git-send-email-sshukla@mvista.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "In-Reply-To": "<1450098032-21198-1-git-send-email-sshukla@mvista.com>",
        "References": "<1450098032-21198-1-git-send-email-sshukla@mvista.com>",
        "Subject": "[dpdk-dev] [ [PATCH v2] 10/13] include/exec-env: ioport: add\n\trte_virt_ioport header file",
        "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": "including virtio_ioport header file has iopci bar page_size, bar_len and\ndevice filename info.\n\nSigned-off-by: Santosh Shukla <sshukla@mvista.com>\n---\n lib/librte_eal/linuxapp/eal/Makefile               |    2 +-\n .../eal/include/exec-env/rte_virt_ioport.h         |   81 ++++++++++++++++++++\n 2 files changed, 82 insertions(+), 1 deletion(-)\n create mode 100644 lib/librte_eal/linuxapp/eal/include/exec-env/rte_virt_ioport.h",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile\nindex 26eced5..1252e05 100644\n--- a/lib/librte_eal/linuxapp/eal/Makefile\n+++ b/lib/librte_eal/linuxapp/eal/Makefile\n@@ -115,7 +115,7 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)\n CFLAGS_eal_thread.o += -Wno-return-type\n endif\n \n-INC := rte_interrupts.h rte_kni_common.h rte_dom0_common.h\n+INC := rte_interrupts.h rte_kni_common.h rte_dom0_common.h rte_virt_ioport.h\n \n SYMLINK-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP)-include/exec-env := \\\n \t$(addprefix include/exec-env/,$(INC))\ndiff --git a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_virt_ioport.h b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_virt_ioport.h\nnew file mode 100644\nindex 0000000..8098eaf\n--- /dev/null\n+++ b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_virt_ioport.h\n@@ -0,0 +1,81 @@\n+/*\n+ *   This file is provided under a dual BSD/LGPLv2 license.  When using or\n+ *   redistributing this file, you may do so under either license.\n+ *\n+ *   GNU LESSER GENERAL PUBLIC LICENSE\n+ *\n+ *   Copyright(c) 2015 Cavium Networks. All rights reserved.\n+ *   All rights reserved.\n+ *\n+ *   This program is free software; you can redistribute it and/or modify\n+ *   it under the terms of version 2.1 of the GNU Lesser General Public License\n+ *   as published by the Free Software Foundation.\n+ *\n+ *   This program is distributed in the hope that it will be useful, but\n+ *   WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+ *   Lesser General Public License for more details.\n+ *\n+ *   You should have received a copy of the GNU Lesser General Public License\n+ *   along with this program; if not, write to the Free Software\n+ *   Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.\n+ *\n+ *   Contact Information:\n+ *   Cavium Networks\n+ *\n+ *\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2015 Cavium Networks. All rights reserved.\n+ *   All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *   * Redistributions of source code must retain the above copyright\n+ *     notice, this list of conditions and the following disclaimer.\n+ *   * Redistributions in binary form must reproduce the above copyright\n+ *     notice, this list of conditions and the following disclaimer in\n+ *     the documentation and/or other materials provided with the\n+ *     distribution.\n+ *   * Neither the name of Intel Corporation nor the names of its\n+ *     contributors may be used to endorse or promote products derived\n+ *     from this software without specific prior written permission.\n+ *\n+ *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *    \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *    OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ *\n+ */\n+#ifndef _RTE_VIRTIO_IOPORT_H_\n+#define _RTE_VIRTIO_IOPORT_H_\n+\n+#define VIRT_IOPORT_DEV\t\t\"/dev/igb_ioport\"\n+\n+/**\n+ * Keeping pci_virt_ioport_size = 4k.\n+ * So maximum mmaped pci_iobar supported =\n+ * (virt_ioport_size/pci_dev->mem_resource[0].len)\n+ * where, pci_dev->mem_resource[0].len == virtio_pci_iobar_len i.e.. 32 byte\n+ *\n+ * Note: kernel could allow maximum 32 virtio-net-pci interface, that mean\n+ * maximum 32 PCI_IOBAR(s) where each PCI_IOBAR_LEN=0x20, so virtio_map_ioport()\n+ * func by theory gonna support 4k/0x20 ==> 128 PCI_IOBAR(s), more than\n+ * max-virtio-net-pci interface.\n+ */\n+#define PAGE_SIZE\t\t4096\n+#define PCI_VIRT_IOPORT_SIZE\tPAGE_SIZE\n+#define PCI_VIRT_IOBAR_LEN\t32\n+#define PCI_VIRT_IOPORT_MAX\t(PCI_VIRT_IOPORT_SIZE/PCI_VIRT_IOBAR_LEN)\n+\t\t\t\t/* 128 max ioport */\n+\n+#endif /* _RTE_VIRTIO_IOPORT_H_ */\n",
    "prefixes": [
        "dpdk-dev",
        "[PATCH",
        "v2"
    ]
}