get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808291,
    "url": "http://patchwork.ozlabs.org/api/patches/808291/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170831155919.1366-2-jiri@resnulli.us/",
    "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": "<20170831155919.1366-2-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-08-31T15:59:12",
    "name": "[net-next,repost,1/8] devlink: Add IPv6 header for dpipe",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "678f38d36682a2474aa0050c28724ebeb73c1e4d",
    "submitter": {
        "id": 15321,
        "url": "http://patchwork.ozlabs.org/api/people/15321/?format=api",
        "name": "Jiri Pirko",
        "email": "jiri@resnulli.us"
    },
    "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/20170831155919.1366-2-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 863,
            "url": "http://patchwork.ozlabs.org/api/series/863/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=863",
            "date": "2017-08-31T15:59:11",
            "name": "mlxsw: Add IPv6 host dpipe table",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/863/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808291/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808291/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>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=resnulli-us.20150623.gappssmtp.com\n\theader.i=@resnulli-us.20150623.gappssmtp.com\n\theader.b=\"hY26vb9p\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjnB91p9Yz9sD9\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 01:59:29 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751777AbdHaP71 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 11:59:27 -0400",
            "from mail-wr0-f193.google.com ([209.85.128.193]:38642 \"EHLO\n\tmail-wr0-f193.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751583AbdHaP7Y (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 31 Aug 2017 11:59:24 -0400",
            "by mail-wr0-f193.google.com with SMTP id j3so17183wrb.5\n\tfor <netdev@vger.kernel.org>; Thu, 31 Aug 2017 08:59:24 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tb125sm404874wma.28.2017.08.31.08.59.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 31 Aug 2017 08:59:22 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=resnulli-us.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=hLv6WNaxRF8sCgkIQrC2nvkXDa0yDQnFmuaODa3BW9o=;\n\tb=hY26vb9py9C8YMkwqUu6WdOW01TUctgkF7nPVtZ+gAFyCtZfYEQzd9Z65kUSC72rkb\n\toUAkd3TMu7uOmnuGX5S3MINJI0hrHNTaOGgcAePQBxKbm5f79KxYUgnQ9Ls06VxY8Whk\n\tIIUfPsb+fAvEwvP/VP3HtIkVkyIQ1mQOjRNE1tKCwfWrxS/Tss247x4ctLXi7iiX6tg9\n\tbnxlZHLjZAO+JoD/yFv5/UtbmTMJ6o+/lfDUiLTFp8QcKsjFZXW39zOgJ2aSqOu7bhGa\n\tJkzrMaBuMaVLktwEMLmq14XWlutoAF5BfHKNW0tdv1h0AfYMVIyuPPGXivhi5uyXoyi3\n\tHN6A==",
        "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=hLv6WNaxRF8sCgkIQrC2nvkXDa0yDQnFmuaODa3BW9o=;\n\tb=puEefrIaj8hmt8OsUfkRCW01QnCPsYxnNjOuYSRKA2TjxlTrf8hJYn3EFwhnbDDxTT\n\t0svd+Ei4g1/sDTPvIPTpPbEQ/UNAGxRsvtO848B6SfuHkDMnsvHAB54+S2a3Gmi6qFfb\n\tJiJl7MW0WwWX6XFp1L2Vdgt2zglbIqHhTWAgsK3mtCtxQIJLuWW15zDPR0EpjnKLR9cL\n\t5ESbjNazVIT7fCbWxPPMoiyit9PE0y2KxPbK6a6oQkuH913aGQfB9NgWo+GrPkBl+VNe\n\tb+oxSIKaqXJCxuInnWSzNGQutIApiwV3UChBTbRi6uBaTkP80aL4TiGVx1iWm2ZZCdGf\n\tI/KA==",
        "X-Gm-Message-State": "AHYfb5grw57EfQhTVgfpZl1BV3grZdofeAhkhmt8CuMRgw97rxMwYgsC\n\t4Lna1rYuNKcvR2H0iBM=",
        "X-Google-Smtp-Source": "ADKCNb4l51Pu+/GW4Qx7Lf4i5i9BF6rFy/58E7gXY3pqPi0Bi/oTTXY+VPDo1RAL7kp+ZaSONR9LBg==",
        "X-Received": "by 10.223.150.20 with SMTP id b20mr2632405wra.118.1504195163153; \n\tThu, 31 Aug 2017 08:59:23 -0700 (PDT)",
        "From": "Jiri Pirko <jiri@resnulli.us>",
        "To": "netdev@vger.kernel.org",
        "Cc": "davem@davemloft.net, arkadis@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com",
        "Subject": "[patch net-next repost 1/8] devlink: Add IPv6 header for dpipe",
        "Date": "Thu, 31 Aug 2017 17:59:12 +0200",
        "Message-Id": "<20170831155919.1366-2-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170831155919.1366-1-jiri@resnulli.us>",
        "References": "<20170831155919.1366-1-jiri@resnulli.us>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "From: Arkadi Sharshevsky <arkadis@mellanox.com>\n\nThis will be used by the IPv6 host table which will be introduced in the\nfollowing patches. The fields in the header are added per-use. This header\nis global and can be reused by many drivers.\n\nSigned-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n include/net/devlink.h        |  1 +\n include/uapi/linux/devlink.h |  5 +++++\n net/core/devlink.c           | 17 +++++++++++++++++\n 3 files changed, 23 insertions(+)",
    "diff": "diff --git a/include/net/devlink.h b/include/net/devlink.h\nindex aaf7178..b9654e1 100644\n--- a/include/net/devlink.h\n+++ b/include/net/devlink.h\n@@ -330,6 +330,7 @@ int devlink_dpipe_match_put(struct sk_buff *skb,\n \t\t\t    struct devlink_dpipe_match *match);\n extern struct devlink_dpipe_header devlink_dpipe_header_ethernet;\n extern struct devlink_dpipe_header devlink_dpipe_header_ipv4;\n+extern struct devlink_dpipe_header devlink_dpipe_header_ipv6;\n \n #else\n \ndiff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h\nindex 6c17254..0cbca96 100644\n--- a/include/uapi/linux/devlink.h\n+++ b/include/uapi/linux/devlink.h\n@@ -234,9 +234,14 @@ enum devlink_dpipe_field_ipv4_id {\n \tDEVLINK_DPIPE_FIELD_IPV4_DST_IP,\n };\n \n+enum devlink_dpipe_field_ipv6_id {\n+\tDEVLINK_DPIPE_FIELD_IPV6_DST_IP,\n+};\n+\n enum devlink_dpipe_header_id {\n \tDEVLINK_DPIPE_HEADER_ETHERNET,\n \tDEVLINK_DPIPE_HEADER_IPV4,\n+\tDEVLINK_DPIPE_HEADER_IPV6,\n };\n \n #endif /* _UAPI_LINUX_DEVLINK_H_ */\ndiff --git a/net/core/devlink.c b/net/core/devlink.c\nindex cbc4b04..7d430c1 100644\n--- a/net/core/devlink.c\n+++ b/net/core/devlink.c\n@@ -63,6 +63,23 @@ struct devlink_dpipe_header devlink_dpipe_header_ipv4 = {\n };\n EXPORT_SYMBOL(devlink_dpipe_header_ipv4);\n \n+static struct devlink_dpipe_field devlink_dpipe_fields_ipv6[] = {\n+\t{\n+\t\t.name = \"destination ip\",\n+\t\t.id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP,\n+\t\t.bitwidth = 128,\n+\t},\n+};\n+\n+struct devlink_dpipe_header devlink_dpipe_header_ipv6 = {\n+\t.name = \"ipv6\",\n+\t.id = DEVLINK_DPIPE_HEADER_IPV6,\n+\t.fields = devlink_dpipe_fields_ipv6,\n+\t.fields_count = ARRAY_SIZE(devlink_dpipe_fields_ipv6),\n+\t.global = true,\n+};\n+EXPORT_SYMBOL(devlink_dpipe_header_ipv6);\n+\n EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg);\n \n static LIST_HEAD(devlink_list);\n",
    "prefixes": [
        "net-next",
        "repost",
        "1/8"
    ]
}