get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 819465,
    "url": "http://patchwork.ozlabs.org/api/patches/819465/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/d34f8440be3e1d735c694c6899c5a8b14e9a70ea.1506590878.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": "<d34f8440be3e1d735c694c6899c5a8b14e9a70ea.1506590878.git.amine.kherbouche@6wind.com>",
    "list_archive_url": null,
    "date": "2017-09-28T09:34:19",
    "name": "[v4,1/2] expose stack entry function",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "021e339aada93f1bc5d1adc6f085224e2f884b1d",
    "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/d34f8440be3e1d735c694c6899c5a8b14e9a70ea.1506590878.git.amine.kherbouche@6wind.com/mbox/",
    "series": [
        {
            "id": 5523,
            "url": "http://patchwork.ozlabs.org/api/series/5523/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5523",
            "date": "2017-09-28T09:34:20",
            "name": "Introduce MPLS over GRE",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/5523/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/819465/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/819465/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=\"VOA2kwUW\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2qKN5Lp4z9t3h\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 28 Sep 2017 19:34:48 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752533AbdI1Jem (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 28 Sep 2017 05:34:42 -0400",
            "from mail-wm0-f46.google.com ([74.125.82.46]:52991 \"EHLO\n\tmail-wm0-f46.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752011AbdI1Jek (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 28 Sep 2017 05:34:40 -0400",
            "by mail-wm0-f46.google.com with SMTP id m127so986089wmm.1\n\tfor <netdev@vger.kernel.org>; Thu, 28 Sep 2017 02:34:40 -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\th56sm1453908ede.15.2017.09.28.02.34.38\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Sep 2017 02:34:38 -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=jMskhJ0utzzUjrDmmUAZZFrExKt8cQH2tbZj6VdRyRo=;\n\tb=VOA2kwUWw+Iq9v2WkE72aRaTMMPQnCnHeQnOBPpruliodMChHW3Wky9GwESCb6soz0\n\tJ6GABvVVdTFdBugV20wmHa5nazk5ONqcj3O9/JJBOu8wMGKiu1CsKOirj9pHVmxrHN9U\n\tyhk8HqMOeX2tkNzZ386keW9SXJWMMoufExCw2UKPfiObbJGKQyvnfA0pYjaB9+crq2DC\n\t0f1CBITiM/SL4KRjXokXTzOCl980CrBnrT+W9mX2Nozs6sdMpSSDOc4zd7JsIFIshnGX\n\t+7xCQsH7Pz4UDEZhqX2YgXkt+VT+FsbaeJ7tnRsx2SX7pynh78eDCKBmRYVjIOP09b16\n\tJFXA==",
        "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=jMskhJ0utzzUjrDmmUAZZFrExKt8cQH2tbZj6VdRyRo=;\n\tb=b3BlSPRgJoPLAV9w0HGxKsQ6vQeKkzTIsEP4u8GBTy6aUGgyS4h/Ei9i3SeJxQh+fK\n\t89R75fhIa5G6c0tz+/3LokwZhpvZ9vvwCAGjABDHvovpJkot0Bl0nJizE5N9V/xxuqmK\n\tsOQRHFA0y3NfGaNfQgH3gMk5LGmY+7oTaX5b9YAOsqbN61GvUPT1Ammbj29aA1Vt10OH\n\tgtuflXTveuzsl+87hH4PCXScQkBgcgrzT1I+Y24con4srrCjVTGk9NtQ0V6Liyom08cP\n\t/1Hx2d/oLQhW66WGQwvSfO8oKzX4S3YMzCNlHnrc8EzpQbBP12MiRxXp/zrlc/vLjw+6\n\tS61Q==",
        "X-Gm-Message-State": "AHPjjUi4Q8WgIZzY6fVerWySmbgZnTqu8BxFULohvWhftyWhcBI+kR7d\n\trvCPxgVJys41tZrq1dEbl4OaDsCa",
        "X-Google-Smtp-Source": "AOwi7QDH6NB9rPBr/PJMkKOYaMtPw6THqErFRfBjEbT4+1/TsAa6ldh9jAMW8IiervjUkjfp5KgRtQ==",
        "X-Received": "by 10.80.212.40 with SMTP id t40mr5218240edh.67.1506591279205;\n\tThu, 28 Sep 2017 02:34:39 -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 v4 1/2] expose stack entry function",
        "Date": "Thu, 28 Sep 2017 11:34:19 +0200",
        "Message-Id": "<d34f8440be3e1d735c694c6899c5a8b14e9a70ea.1506590878.git.amine.kherbouche@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<cover.1506590878.git.amine.kherbouche@6wind.com>",
        "References": "<cover.1506590878.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 MPLSoverGRE in the next commit.\n\nSigned-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>\nAcked-by: Roopa Prabhu <roopa@cumulusnetworks.com>\n---\n include/linux/mpls.h | 4 ++++\n net/mpls/af_mpls.c   | 5 +++--\n 2 files changed, 7 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/include/linux/mpls.h b/include/linux/mpls.h\nindex 384fb22..b0579ab 100644\n--- a/include/linux/mpls.h\n+++ b/include/linux/mpls.h\n@@ -2,10 +2,14 @@\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+\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": [
        "v4",
        "1/2"
    ]
}