get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41842,
    "url": "http://patches.dpdk.org/api/patches/41842/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1530191753-18689-2-git-send-email-rk@semihalf.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": "<1530191753-18689-2-git-send-email-rk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530191753-18689-2-git-send-email-rk@semihalf.com",
    "date": "2018-06-28T13:15:50",
    "name": "[v2,1/4] igb_uio: add wc option",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fee802b10994dc178ddd39cac2690264caaa2b35",
    "submitter": {
        "id": 951,
        "url": "http://patches.dpdk.org/api/people/951/?format=api",
        "name": "Rafal Kozik",
        "email": "rk@semihalf.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1530191753-18689-2-git-send-email-rk@semihalf.com/mbox/",
    "series": [
        {
            "id": 293,
            "url": "http://patches.dpdk.org/api/series/293/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=293",
            "date": "2018-06-28T13:15:49",
            "name": "support for write combining",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/293/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41842/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41842/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 D2C211B1C3;\n\tThu, 28 Jun 2018 15:16:13 +0200 (CEST)",
            "from mail-lj1-f196.google.com (mail-lj1-f196.google.com\n\t[209.85.208.196]) by dpdk.org (Postfix) with ESMTP id C84A51B055\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:16:11 +0200 (CEST)",
            "by mail-lj1-f196.google.com with SMTP id k20-v6so4475288ljk.9\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 06:16:11 -0700 (PDT)",
            "from rafalkozik.semihalf.local\n\t(31-172-191-173.noc.fibertech.net.pl. [31.172.191.173])\n\tby smtp.gmail.com with ESMTPSA id\n\to196-v6sm1303246lfe.95.2018.06.28.06.16.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 06:16:10 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=+fL6fuPc8F52ludMma2sKMyIvFsnG1EOxbLEAP6gj/k=;\n\tb=z2Hei0Q3vP8fdgIScfAnuEHJZLyi3QCcdenRzN3cmjgRbE8VTQAqdE9SwxPz5XZVV4\n\t6KU5mj2soo8pHFEoZxXCX+YStiRzaVNsbjQQRt2DpCp2lwEcab+/xISK00WpiyWbkUqv\n\tETZ7xn96attqGMhWJFnXBWIyNnUFrMXsN3B6YFX/GHkFQ8IsGFQ+g8eNK/sSOU/Uf5C9\n\tjGSB+4kxzvVwgz0fOzazbGwfp7ZiVIjlfDXHvxWIqMUVrZzwvvMs9sqfuY9gC66u3Xp+\n\tooAamCIf7MW9+2GCbogl3ETL4rmS+4/Z7+/ZpT+Wyo5RXohlhi1NHyivLXA26UotGweq\n\tAb5Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=+fL6fuPc8F52ludMma2sKMyIvFsnG1EOxbLEAP6gj/k=;\n\tb=W3o+eigvhygJHh4CltwI1oaBPFX64xD10ZD7PvQIQ+K1BHgsS93NCzQRw/gaBThMEd\n\thbuRWctR8/VsbREbwr9aqAp6hf1Btf8lTaIrYVp0s1XKMubzo9CPILniffBemgTTir/Q\n\tr192ggw/w5QSzf6BDBDGB1KExigruqGoeDiJGKXp45Vz54EgCAkFF+M1nhlOJbUAkGsm\n\t++5t6nFKKvGfTYyoe2p/gr7vAIaoW1RjQzqhp71pHK3psTJzVw4bAoCydICwgzufKlK4\n\tZyWQQ1JeNJaA/jn9AEiEWzPNFJoy+fSM5Y7j/o3lLrHK67oUs972F4ETlp53wRZ2emEL\n\t6ioQ==",
        "X-Gm-Message-State": "APt69E3eAu8bVfd3FmtfDldTOSmKw9pBwdMOgSm1/G/DNuRKYtx2mlHS\n\tWMydjvi7OpdI7cAnr8F1rOmNg2gvpoklKg==",
        "X-Google-Smtp-Source": "AAOMgpenmwhPwc+IoD8JGccgt/II8KuLVAqVlHkVikToh3yxPcrEBbu0FIRxV3BSGNtn7Ea+BW5H9A==",
        "X-Received": "by 2002:a2e:8051:: with SMTP id\n\tp17-v6mr7086897ljg.22.1530191771122; \n\tThu, 28 Jun 2018 06:16:11 -0700 (PDT)",
        "From": "Rafal Kozik <rk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com,\n\tmatua@amazon.com, igorch@amazon.com, thomas@monjalon.net,\n\tferruh.yigit@intel.com, Rafal Kozik <rk@semihalf.com>",
        "Date": "Thu, 28 Jun 2018 15:15:50 +0200",
        "Message-Id": "<1530191753-18689-2-git-send-email-rk@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1530191753-18689-1-git-send-email-rk@semihalf.com>",
        "References": "<CAMG3L49v=nNc9RNweJn4WCpuKeNfCk18o-xv2vq29AUo5CKc=g@mail.gmail.com>\n\t<1530191753-18689-1-git-send-email-rk@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v2 1/4] igb_uio: add wc option",
        "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": "Write combining (WC) increases NIC performance by making better\nutilization of PCI bus, but cannot be use by all PMDs.\n\nTo get internal_addr memory need to be mapped. But as memory could not be\nmapped twice: with and without WC, it should be skipped for WC. [1]\n\nTo do not spoil other drivers that potentially could use internal_addr,\nparameter wc_activate adds possibility to skip it for those PMDs,\nthat do not use it.\n\n[1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf\n\tsection 5.3 and 5.4\n\nSigned-off-by: Rafal Kozik <rk@semihalf.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n kernel/linux/igb_uio/igb_uio.c | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/kernel/linux/igb_uio/igb_uio.c b/kernel/linux/igb_uio/igb_uio.c\nindex b3233f1..3382fb1 100644\n--- a/kernel/linux/igb_uio/igb_uio.c\n+++ b/kernel/linux/igb_uio/igb_uio.c\n@@ -30,6 +30,7 @@ struct rte_uio_pci_dev {\n \tint refcnt;\n };\n \n+static int wc_activate;\n static char *intr_mode;\n static enum rte_intr_mode igbuio_intr_mode_preferred = RTE_INTR_MODE_MSIX;\n /* sriov sysfs */\n@@ -375,9 +376,13 @@ igbuio_pci_setup_iomem(struct pci_dev *dev, struct uio_info *info,\n \tlen = pci_resource_len(dev, pci_bar);\n \tif (addr == 0 || len == 0)\n \t\treturn -1;\n-\tinternal_addr = ioremap(addr, len);\n-\tif (internal_addr == NULL)\n-\t\treturn -1;\n+\tif (wc_activate == 0) {\n+\t\tinternal_addr = ioremap(addr, len);\n+\t\tif (internal_addr == NULL)\n+\t\t\treturn -1;\n+\t} else {\n+\t\tinternal_addr = NULL;\n+\t}\n \tinfo->mem[n].name = name;\n \tinfo->mem[n].addr = addr;\n \tinfo->mem[n].internal_addr = internal_addr;\n@@ -650,6 +655,12 @@ MODULE_PARM_DESC(intr_mode,\n \"    \" RTE_INTR_MODE_LEGACY_NAME \"     Use Legacy interrupt\\n\"\n \"\\n\");\n \n+module_param(wc_activate, int, 0);\n+MODULE_PARM_DESC(wc_activate,\n+\"Activate support for write combining (WC) (default=0)\\n\"\n+\"    0 - disable\\n\"\n+\"    other - enable\\n\");\n+\n MODULE_DESCRIPTION(\"UIO driver for Intel IGB PCI cards\");\n MODULE_LICENSE(\"GPL\");\n MODULE_AUTHOR(\"Intel Corporation\");\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}