get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1028,
    "url": "http://patchwork.ozlabs.org/api/patches/1028/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.010641.165183362.davem@davemloft.net/",
    "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": "<20080923.010641.165183362.davem@davemloft.net>",
    "list_archive_url": null,
    "date": "2008-09-23T08:06:41",
    "name": ": net: Add skb_queue_next().",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cdbbeccc54f358e84858c8532342493504aafeb6",
    "submitter": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/people/15/?format=api",
        "name": "David Miller",
        "email": "davem@davemloft.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20080923.010641.165183362.davem@davemloft.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/1028/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1028/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.176.167])\n\tby ozlabs.org (Postfix) with ESMTP id 24D92DDE25\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 23 Sep 2008 18:07:00 +1000 (EST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751714AbYIWIGz (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 23 Sep 2008 04:06:55 -0400",
            "(majordomo@vger.kernel.org) by vger.kernel.org id S1751652AbYIWIGy\n\t(ORCPT <rfc822; netdev-outgoing>); Tue, 23 Sep 2008 04:06:54 -0400",
            "from 74-93-104-97-Washington.hfc.comcastbusiness.net\n\t([74.93.104.97]:52460\n\t\"EHLO sunset.davemloft.net\" rhost-flags-OK-FAIL-OK-OK)\n\tby vger.kernel.org with ESMTP id S1751359AbYIWIGx (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 23 Sep 2008 04:06:53 -0400",
            "from localhost (localhost [127.0.0.1])\n\tby sunset.davemloft.net (Postfix) with ESMTP id 0DEBDC8C181\n\tfor <netdev@vger.kernel.org>; Tue, 23 Sep 2008 01:06:42 -0700 (PDT)"
        ],
        "Date": "Tue, 23 Sep 2008 01:06:41 -0700 (PDT)",
        "Message-Id": "<20080923.010641.165183362.davem@davemloft.net>",
        "To": "netdev@vger.kernel.org",
        "Subject": "[PATCH]: net: Add skb_queue_next().",
        "From": "David Miller <davem@davemloft.net>",
        "X-Mailer": "Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI)",
        "Mime-Version": "1.0",
        "Content-Type": "Text/Plain; charset=us-ascii",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "net: Add skb_queue_next().\n\nA lot of code wants to iterate over an SKB queue at the top level using\nit's own control structure and iterator scheme.\n\nProvide skb_queue_next(), which is only valid to invoke if\nskb_queue_is_last() returns false.\n\nSigned-off-by: David S. Miller <davem@davemloft.net>\n---\n include/linux/skbuff.h |   18 ++++++++++++++++++\n 1 files changed, 18 insertions(+), 0 deletions(-)",
    "diff": "diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h\nindex 3a5838d..d2f1778 100644\n--- a/include/linux/skbuff.h\n+++ b/include/linux/skbuff.h\n@@ -486,6 +486,24 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,\n }\n \n /**\n+ *\tskb_queue_next - return the next packet in the queue\n+ *\t@list: queue head\n+ *\t@skb: current buffer\n+ *\n+ *\tReturn the next packet in @list after @skb.  It is only valid to\n+ *\tcall this if skb_queue_is_last() evaluates to false.\n+ */\n+static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list,\n+\t\t\t\t\t     const struct sk_buff *skb)\n+{\n+\t/* This BUG_ON may seem severe, but if we just return then we\n+\t * are going to dereference garbage.\n+\t */\n+\tBUG_ON(skb_queue_is_last(list, skb));\n+\treturn skb->next;\n+}\n+\n+/**\n  *\tskb_get - reference buffer\n  *\t@skb: buffer to reference\n  *\n",
    "prefixes": []
}