get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818500,
    "url": "http://patchwork.ozlabs.org/api/patches/818500/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/14a3fe55b712ae24a927fd864c90d475916849b3.1506416988.git.amine.kherbouche@6wind.com/",
    "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": "<14a3fe55b712ae24a927fd864c90d475916849b3.1506416988.git.amine.kherbouche@6wind.com>",
    "list_archive_url": null,
    "date": "2017-09-26T09:22:50",
    "name": "[v2,1/2] mpls: expose stack entry function",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "241e6580add9f5a0e85924ced1a2415ea65e16a8",
    "submitter": {
        "id": 72147,
        "url": "http://patchwork.ozlabs.org/api/people/72147/?format=api",
        "name": "Amine Kherbouche",
        "email": "amine.kherbouche@6wind.com"
    },
    "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/14a3fe55b712ae24a927fd864c90d475916849b3.1506416988.git.amine.kherbouche@6wind.com/mbox/",
    "series": [
        {
            "id": 5088,
            "url": "http://patchwork.ozlabs.org/api/series/5088/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5088",
            "date": "2017-09-26T09:22:50",
            "name": "Introduce MPLS over GRE",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/5088/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818500/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818500/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=6wind-com.20150623.gappssmtp.com\n\theader.i=@6wind-com.20150623.gappssmtp.com\n\theader.b=\"p0Rb8a1a\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1b91470Hz9t3B\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 26 Sep 2017 19:23:17 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S968438AbdIZJXP (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 26 Sep 2017 05:23:15 -0400",
            "from mail-wr0-f178.google.com ([209.85.128.178]:44222 \"EHLO\n\tmail-wr0-f178.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S968432AbdIZJXK (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 26 Sep 2017 05:23:10 -0400",
            "by mail-wr0-f178.google.com with SMTP id v109so12327681wrc.1\n\tfor <netdev@vger.kernel.org>; Tue, 26 Sep 2017 02:23:10 -0700 (PDT)",
            "from griffon.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tb66sm754235wmh.25.2017.09.26.02.23.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 26 Sep 2017 02:23:08 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=uY3YSnUVHdqVFAr8UtvNM/be5p4SO1tGLV0HToFzrD4=;\n\tb=p0Rb8a1aPTO5/ZD+wZ1nFVPSnPQ7rXTX6eyLiwayP1L9+bDzv2Equ8vK/DBDYVVgF0\n\tHl4dz7zsmDDBX2uIRjgcyOqk2Q1khYHWDmSd9mb/GMUWR5BIW+0raENbxeFw/11j/D1N\n\tLiLYGo5rSGEMm7j7TAB776FRU4f9gO7jjJk/8uq1dwp/MyamZuUTFd46PgD/AMkck+QD\n\t2o+OterMjM/dGQ4eRul3fLaMwTaf2QISg/x1sone4bX6rnhaAW3nPAZYIsjD6idbk2T9\n\tsinKp6ZY8ZGkKipP329bCWlQtbmuE/Lf7iOl/wwUgbSQhAzuRwzK3G33ObR8QriZFlM6\n\t4axQ==",
        "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=uY3YSnUVHdqVFAr8UtvNM/be5p4SO1tGLV0HToFzrD4=;\n\tb=d48oa8Hv3Y0wYkxn3a8HiFHtpXPeDfPvOKHP3JG3jMFHXTW7+fmhsX921tHa8jLilq\n\tlihwCCUnKOyitP9TX2C6i0lovE7D3dRkyNbIXmyh6SIXA2NCRlAb/LUksC5rodG2Sn5E\n\tCQkogAMCaYYNR2CPpWM1bKgNuC+jImF1deAk15XplfcSxy6ANQRfZv+kp5pbkrM9I0+s\n\tntNyTb76hKXEZy+ygFahK9P23uHcLyl+J2rGaTOywZjdZbQWjTodhID+ufIQqN3z4HZB\n\t0tG3JuQAzE4PQfw/J134SRuxLPugZpYo9LAG08pBMbbwObbohar0wMIEpJhIdof3tZS6\n\tELhQ==",
        "X-Gm-Message-State": "AHPjjUibLx6kQn77Y4UNItrLBG8aSPfcMfkyncN77sDv8Yg9FAgoKyA5\n\tm1P621KQv2Hoy1mYNGZ5HKKPMQWd",
        "X-Google-Smtp-Source": "AOwi7QD4VbAj2aRITCJ7ljzROVwlvcHERanDh89VDXij+dkq20mCqigIw9rR2lvt0mskyWKjWD7XbA==",
        "X-Received": "by 10.223.173.98 with SMTP id p89mr8318388wrc.194.1506417789283; \n\tTue, 26 Sep 2017 02:23:09 -0700 (PDT)",
        "From": "Amine Kherbouche <amine.kherbouche@6wind.com>",
        "To": "netdev@vger.kernel.org, xeb@mail.ru, roopa@cumulusnetworks.com",
        "Cc": "amine.kherbouche@6wind.com, equinox@diac24.net",
        "Subject": "[PATCH v2 1/2] mpls: expose stack entry function",
        "Date": "Tue, 26 Sep 2017 11:22:50 +0200",
        "Message-Id": "<14a3fe55b712ae24a927fd864c90d475916849b3.1506416988.git.amine.kherbouche@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<cover.1506416988.git.amine.kherbouche@6wind.com>",
        "References": "<cover.1506416988.git.amine.kherbouche@6wind.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Exporting mpls_forward() function to be able to be called from elsewhere\nsuch as MPLS over GRE in the next commit.\n\nSigned-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>\n---\n include/linux/mpls.h | 3 +++\n net/mpls/af_mpls.c   | 5 +++--\n 2 files changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/include/linux/mpls.h b/include/linux/mpls.h\nindex 384fb22..d5c7599 100644\n--- a/include/linux/mpls.h\n+++ b/include/linux/mpls.h\n@@ -2,10 +2,13 @@\n #define _LINUX_MPLS_H\n \n #include <uapi/linux/mpls.h>\n+#include <linux/netdevice.h>\n \n #define MPLS_TTL_MASK\t\t(MPLS_LS_TTL_MASK >> MPLS_LS_TTL_SHIFT)\n #define MPLS_BOS_MASK\t\t(MPLS_LS_S_MASK >> MPLS_LS_S_SHIFT)\n #define MPLS_TC_MASK\t\t(MPLS_LS_TC_MASK >> MPLS_LS_TC_SHIFT)\n #define MPLS_LABEL_MASK\t\t(MPLS_LS_LABEL_MASK >> MPLS_LS_LABEL_SHIFT)\n \n+int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n+\t\t struct packet_type *pt, struct net_device *orig_dev);\n #endif  /* _LINUX_MPLS_H */\ndiff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c\nindex c5b9ce4..36ea2ad 100644\n--- a/net/mpls/af_mpls.c\n+++ b/net/mpls/af_mpls.c\n@@ -307,8 +307,8 @@ static bool mpls_egress(struct net *net, struct mpls_route *rt,\n \treturn success;\n }\n \n-static int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n-\t\t\tstruct packet_type *pt, struct net_device *orig_dev)\n+int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n+\t\t struct packet_type *pt, struct net_device *orig_dev)\n {\n \tstruct net *net = dev_net(dev);\n \tstruct mpls_shim_hdr *hdr;\n@@ -442,6 +442,7 @@ static int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n \tkfree_skb(skb);\n \treturn NET_RX_DROP;\n }\n+EXPORT_SYMBOL(mpls_forward);\n \n static struct packet_type mpls_packet_type __read_mostly = {\n \t.type = cpu_to_be16(ETH_P_MPLS_UC),\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}