get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809271,
    "url": "http://patchwork.ozlabs.org/api/patches/809271/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1504439110050-1907815276-6-diffsplit-thomas@m3y3r.de/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504439110050-1907815276-6-diffsplit-thomas@m3y3r.de>",
    "list_archive_url": null,
    "date": "2017-09-03T12:19:31",
    "name": "[6/10] ixgbe: Use ARRAY_SIZE macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "awaiting-upstream",
    "archived": true,
    "hash": "f9cd490cf9e0a212d1936a45eb9eda73356a40fa",
    "submitter": {
        "id": 10277,
        "url": "http://patchwork.ozlabs.org/api/people/10277/?format=api",
        "name": "Thomas Meyer",
        "email": "thomas@m3y3r.de"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1504439110050-1907815276-6-diffsplit-thomas@m3y3r.de/mbox/",
    "series": [
        {
            "id": 1221,
            "url": "http://patchwork.ozlabs.org/api/series/1221/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1221",
            "date": "2017-09-03T12:19:31",
            "name": null,
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1221/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809271/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809271/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlXTL0JxNz9sP3\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun,  3 Sep 2017 22:33:42 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752971AbdICMd3 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSun, 3 Sep 2017 08:33:29 -0400",
            "from www17.your-server.de ([213.133.104.17]:34276 \"EHLO\n\twww17.your-server.de\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752353AbdICMad (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sun, 3 Sep 2017 08:30:33 -0400",
            "from [95.222.27.54] (helo=olymp)\n\tby www17.your-server.de with esmtpsa\n\t(TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2)\n\t(envelope-from <thomas@m3y3r.de>)\n\tid 1doU2p-0007PR-PN; Sun, 03 Sep 2017 14:30:31 +0200"
        ],
        "Subject": "[PATCH 6/10] ixgbe: Use ARRAY_SIZE macro",
        "From": "Thomas Meyer <thomas@m3y3r.de>",
        "To": "netdev@vger.kernel.org, linux-kernel@vger.kernel.org",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Mime-Version": "1.0",
        "Message-ID": "<1504439110050-1907815276-6-diffsplit-thomas@m3y3r.de>",
        "References": "<1504439110050-939061377-0-diffsplit-thomas@m3y3r.de>",
        "In-Reply-To": "<1504439110050-939061377-0-diffsplit-thomas@m3y3r.de>",
        "Date": "Sun, 03 Sep 2017 14:19:31 +0200",
        "X-Mailer": "Evolution 3.22.6-1 ",
        "Content-Transfer-Encoding": "7bit",
        "X-Authenticated-Sender": "thomas@m3y3r.de",
        "X-Virus-Scanned": "Clear (ClamAV 0.99.2/23763/Sun Sep  3 10:37:41 2017)",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Use ARRAY_SIZE macro, rather than explicitly coding some variant of it\nyourself.\nFound with: find -type f -name \"*.c\" -o -name \"*.h\" | xargs perl -p -i -e\n's/\\bsizeof\\s*\\(\\s*(\\w+)\\s*\\)\\s*\\ /\\s*sizeof\\s*\\(\\s*\\1\\s*\\[\\s*0\\s*\\]\\s*\\)\n/ARRAY_SIZE(\\1)/g' and manual check/verification.\n\nSigned-off-by: Thomas Meyer <thomas@m3y3r.de>\n---",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\nindex 72d84a065e34..fabb11475fb4 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c\n@@ -21,6 +21,7 @@\n  *  Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497\n  *\n  ******************************************************************************/\n+#include <linux/kernel.h>\n #include \"ixgbe_x540.h\"\n #include \"ixgbe_type.h\"\n #include \"ixgbe_common.h\"\n@@ -947,7 +948,7 @@ static s32 ixgbe_checksum_ptr_x550(struct ixgbe_hw *hw, u16 ptr,\n \tu16 length, bufsz, i, start;\n \tu16 *local_buffer;\n \n-\tbufsz = sizeof(buf) / sizeof(buf[0]);\n+\tbufsz = ARRAY_SIZE(buf);\n \n \t/* Read a chunk at the pointer location */\n \tif (!buffer) {\n",
    "prefixes": [
        "6/10"
    ]
}