get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1118203,
    "url": "http://patchwork.ozlabs.org/api/patches/1118203/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190618115513.99661-1-dedekind1@gmail.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20190618115513.99661-1-dedekind1@gmail.com>",
    "list_archive_url": null,
    "date": "2019-06-18T11:55:12",
    "name": "[1/2] net: intel: igb: minor ethool regdump amendment",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2352e66ee9ba0d6b1e83b80e0f900ddeb23a31b8",
    "submitter": {
        "id": 2555,
        "url": "http://patchwork.ozlabs.org/api/people/2555/?format=api",
        "name": "Artem Bityutskiy",
        "email": "dedekind1@gmail.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190618115513.99661-1-dedekind1@gmail.com/mbox/",
    "series": [
        {
            "id": 114611,
            "url": "http://patchwork.ozlabs.org/api/series/114611/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=114611",
            "date": "2019-06-18T11:55:12",
            "name": "[1/2] net: intel: igb: minor ethool regdump amendment",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/114611/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1118203/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1118203/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=gmail.com"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 45SwWD1ZZ6z9sDX\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Jun 2019 03:46:46 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6AAE4879DB;\n\tTue, 18 Jun 2019 17:46:44 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 8ntAwLF5Rop6; Tue, 18 Jun 2019 17:46:43 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id EC4DB86727;\n\tTue, 18 Jun 2019 17:46:43 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 2F8191BF869\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jun 2019 12:02:26 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2C93983957\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jun 2019 12:02:26 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id He2ZGyrZAoHs for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jun 2019 12:02:22 +0000 (UTC)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id A815686747\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 18 Jun 2019 12:02:22 +0000 (UTC)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Jun 2019 04:55:16 -0700",
            "from powerlab.fi.intel.com (HELO powerlab.backendnet)\n\t([10.237.71.25])\n\tby orsmga007.jf.intel.com with ESMTP; 18 Jun 2019 04:55:14 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "delayed 00:07:06 by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,389,1557212400\"; d=\"scan'208\";a=\"150241708\"",
        "From": "Artem Bityutskiy <dedekind1@gmail.com>",
        "To": "\"David S. Miller\" <davem@davemloft.net>",
        "Date": "Tue, 18 Jun 2019 14:55:12 +0300",
        "Message-Id": "<20190618115513.99661-1-dedekind1@gmail.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "MIME-Version": "1.0",
        "X-Mailman-Approved-At": "Tue, 18 Jun 2019 17:46:42 +0000",
        "Subject": "[Intel-wired-lan] [PATCH 1/2] net: intel: igb: minor ethool regdump\n\tamendment",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>\n\nThis patch has no functional impact and it is just a preparation\nfor the following patch. It removes an early return from the\n'igb_get_regs()' function by moving the 82576-only registers\ndump into an \"if\" block. With this preparation, we can dump more\nnon-82576 registers at the end of this function.\n\nSigned-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>\n---\n drivers/net/ethernet/intel/igb/igb_ethtool.c | 70 ++++++++++----------\n 1 file changed, 35 insertions(+), 35 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c\nindex c645d9e648e0..401bc2bd6b21 100644\n--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c\n+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c\n@@ -675,41 +675,41 @@ static void igb_get_regs(struct net_device *netdev,\n \t\tregs_buff[554] = adapter->stats.b2ogprc;\n \t}\n \n-\tif (hw->mac.type != e1000_82576)\n-\t\treturn;\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[555 + i] = rd32(E1000_SRRCTL(i + 4));\n-\tfor (i = 0; i < 4; i++)\n-\t\tregs_buff[567 + i] = rd32(E1000_PSRTYPE(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[571 + i] = rd32(E1000_RDBAL(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[583 + i] = rd32(E1000_RDBAH(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[595 + i] = rd32(E1000_RDLEN(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[607 + i] = rd32(E1000_RDH(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[619 + i] = rd32(E1000_RDT(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[631 + i] = rd32(E1000_RXDCTL(i + 4));\n-\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[643 + i] = rd32(E1000_TDBAL(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[655 + i] = rd32(E1000_TDBAH(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[667 + i] = rd32(E1000_TDLEN(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[679 + i] = rd32(E1000_TDH(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[691 + i] = rd32(E1000_TDT(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[703 + i] = rd32(E1000_TXDCTL(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[715 + i] = rd32(E1000_TDWBAL(i + 4));\n-\tfor (i = 0; i < 12; i++)\n-\t\tregs_buff[727 + i] = rd32(E1000_TDWBAH(i + 4));\n+\tif (hw->mac.type == e1000_82576) {\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[555 + i] = rd32(E1000_SRRCTL(i + 4));\n+\t\tfor (i = 0; i < 4; i++)\n+\t\t\tregs_buff[567 + i] = rd32(E1000_PSRTYPE(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[571 + i] = rd32(E1000_RDBAL(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[583 + i] = rd32(E1000_RDBAH(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[595 + i] = rd32(E1000_RDLEN(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[607 + i] = rd32(E1000_RDH(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[619 + i] = rd32(E1000_RDT(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[631 + i] = rd32(E1000_RXDCTL(i + 4));\n+\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[643 + i] = rd32(E1000_TDBAL(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[655 + i] = rd32(E1000_TDBAH(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[667 + i] = rd32(E1000_TDLEN(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[679 + i] = rd32(E1000_TDH(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[691 + i] = rd32(E1000_TDT(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[703 + i] = rd32(E1000_TXDCTL(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[715 + i] = rd32(E1000_TDWBAL(i + 4));\n+\t\tfor (i = 0; i < 12; i++)\n+\t\t\tregs_buff[727 + i] = rd32(E1000_TDWBAH(i + 4));\n+\t}\n }\n \n static int igb_get_eeprom_len(struct net_device *netdev)\n",
    "prefixes": [
        "1/2"
    ]
}