get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 9538,
    "url": "http://patches.dpdk.org/api/patches/9538/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1450098032-21198-13-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-13-git-send-email-sshukla@mvista.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1450098032-21198-13-git-send-email-sshukla@mvista.com",
    "date": "2015-12-14T13:00:31",
    "name": "[dpdk-dev,[PATCH,v2] 12/13] virtio_ethdev: use virtio_ioport api at device init/close",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8f7d359a4312dbfd1e2f810d6e298b5170d61594",
    "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-13-git-send-email-sshukla@mvista.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/9538/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/9538/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 A436991B6;\n\tMon, 14 Dec 2015 14:01:22 +0100 (CET)",
            "from mail-pf0-f173.google.com (mail-pf0-f173.google.com\n\t[209.85.192.173]) by dpdk.org (Postfix) with ESMTP id 3357D91B6\n\tfor <dev@dpdk.org>; Mon, 14 Dec 2015 14:01:21 +0100 (CET)",
            "by pff63 with SMTP id 63so11008418pff.2\n\tfor <dev@dpdk.org>; Mon, 14 Dec 2015 05:01:20 -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.18\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 14 Dec 2015 05:01:19 -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=BPQ/avCObHsLOJi/e2NIEV+MDIcvJU3z5GYMA9cOPbU=;\n\tb=AZKG+XsLep/GGjfey0ZPIXZsQeigDK9pGzamLOpl1tfAKI3+u58c1bP/ad0f8TO4iM\n\tHnWPgdS5Fbhad5RHE+RA7beYi7ShFQnVINwIJYRCeT4s0af+L6rrJCKhWX0PuDfwlzM5\n\t8S5slqQc/q+r5zYill8M1iaLtexvpviKYdDn/3CNmKPttUzFNLtnipxE7NyX+eCWQc4L\n\tDVGx1r/rAXmDUliD9/LknAoEwW7q8+ZO1EA8VZKYrpCIRhKP95hLWgWVhNbIZmAi2Lq2\n\t+kgrLEBaoRbOQA8GDI/DAkVK6ZWbRDXF4GYybZ/DJBuG19o6Hvu+yMak9BcTfqwo2HxN\n\tSYSw==",
        "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=BPQ/avCObHsLOJi/e2NIEV+MDIcvJU3z5GYMA9cOPbU=;\n\tb=MokoNHejRkrR7QwKsGBIPB4ZYTsx+I6FOaVg9AvLo2G3gsaiupW1tDCSZ/6zOiYQqH\n\tY36y9jO3baWBIR8lnOjWx8irBSwSxwdqgx6nvRBMIYpTuAaBdLghch31q+fR+j2Xm3zz\n\ta1M4F+UPWiXMtzMAXG34uZ6JVdgc5bNjtlqmrSOg3GYO66L05E+/fgxyrMlmlqi5ytGC\n\tV+eXzqYilThnjEJ5b2lSO4Ra/g0TTDVzSWSB8ru6B9Ujt+PKaMaIMjhlDf3tK1nOrrqM\n\tr2xKSxXTKgmzf1TsdblKNVH1ekX7/vbooY3gaep8y5ibQz7/1Y88hs9P5LwvZfP0hbmY\n\tXfFA==",
        "X-Gm-Message-State": "ALoCoQmGkSfKqnX2iqLfHxiDbVAQWCJmCD5FqwUN2UV1rP3hR6+mBqvBMSctv9amnlPM23njflKzvlC58TTveeKm0pjqfJPckg==",
        "X-Received": "by 10.98.73.70 with SMTP id w67mr28957670pfa.106.1450098080614; \n\tMon, 14 Dec 2015 05:01:20 -0800 (PST)",
        "From": "Santosh Shukla <sshukla@mvista.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 14 Dec 2015 18:30:31 +0530",
        "Message-Id": "<1450098032-21198-13-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] 12/13] virtio_ethdev: use virtio_ioport api\n\tat device init/close",
        "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": "Call virtio_ioport_init at device init and virtio_ioport_unmap at device close.\n\nSigned-off-by: Santosh Shukla <sshukla@mvista.com>\n---\n drivers/net/virtio/virtio_ethdev.c |    6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 620e0d4..017d49f 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -62,7 +62,7 @@\n #include \"virtio_logs.h\"\n #include \"virtqueue.h\"\n #include \"virtio_rxtx.h\"\n-\n+#include \"virtio_ioport.h\"\n \n static int eth_virtio_dev_init(struct rte_eth_dev *eth_dev);\n static int eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev);\n@@ -497,6 +497,7 @@ virtio_dev_close(struct rte_eth_dev *dev)\n \thw->started = 0;\n \tvirtio_dev_free_mbufs(dev);\n \tvirtio_free_queues(dev);\n+\tvirtio_ioport_unmap();\n }\n \n static void\n@@ -1290,6 +1291,9 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev)\n \tif (virtio_resource_init(pci_dev) < 0)\n \t\treturn -1;\n \n+\tif (virtio_ioport_init(&pci_dev->mem_resource[0]))\n+\t\treturn -1;\n+\n \thw->use_msix = virtio_has_msix(&pci_dev->addr);\n \thw->io_base = (uint64_t)(uintptr_t)pci_dev->mem_resource[0].addr;\n \n",
    "prefixes": [
        "dpdk-dev",
        "[PATCH",
        "v2"
    ]
}