get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 833305,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/833305/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1509621307-152457-1-git-send-email-weiyongjun1@huawei.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<1509621307-152457-1-git-send-email-weiyongjun1@huawei.com>",
    "list_archive_url": null,
    "date": "2017-11-02T11:15:07",
    "name": "[net-next] cxgb4: fix error return code in cxgb4_set_hash_filter()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e2c933715650bbd7517cf35b0556a25b317e6fc7",
    "submitter": {
        "id": 69830,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/69830/?format=api",
        "name": "Wei Yongjun",
        "email": "weiyongjun1@huawei.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1509621307-152457-1-git-send-email-weiyongjun1@huawei.com/mbox/",
    "series": [
        {
            "id": 11480,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/11480/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=11480",
            "date": "2017-11-02T11:15:07",
            "name": "[net-next] cxgb4: fix error return code in cxgb4_set_hash_filter()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/11480/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/833305/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/833305/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 3ySMqQ3MsVz9s9Y\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu,  2 Nov 2017 22:12:02 +1100 (AEDT)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1755789AbdKBLMA (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 2 Nov 2017 07:12:00 -0400",
            "from szxga06-in.huawei.com ([45.249.212.32]:57706 \"EHLO huawei.com\"\n\trhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP\n\tid S1755760AbdKBLL4 (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tThu, 2 Nov 2017 07:11:56 -0400",
            "from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 01064487F78DC;\n\tThu,  2 Nov 2017 19:11:43 +0800 (CST)",
            "from localhost.localdomain.localdomain (10.175.113.25) by\n\tDGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP\n\tServer id 14.3.361.1; Thu, 2 Nov 2017 19:11:36 +0800"
        ],
        "From": "Wei Yongjun <weiyongjun1@huawei.com>",
        "To": "Ganesh Goudar <ganeshgr@chelsio.com>, Kumar Sanghvi <kumaras@chelsio.com>",
        "CC": "Wei Yongjun <weiyongjun1@huawei.com>, <netdev@vger.kernel.org>",
        "Subject": "[PATCH net-next] cxgb4: fix error return code in\n\tcxgb4_set_hash_filter()",
        "Date": "Thu, 2 Nov 2017 11:15:07 +0000",
        "Message-ID": "<1509621307-152457-1-git-send-email-weiyongjun1@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Content-Type": "text/plain; charset=\"ISO-8859-1\"",
        "Content-Transfer-Encoding": "7bit",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.175.113.25]",
        "X-CFilter-Loop": "Reflected",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Fix to return a negative error code from thecxgb4_alloc_atid()\nerror handling case instead of 0.\n\nFixes: 12b276fbf6e0 (\"cxgb4: add support to create hash filters\")\nSigned-off-by: Wei Yongjun <weiyongjun1@huawei.com>\n---\n drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c\nindex abab67d..5980f30 100644\n--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c\n+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c\n@@ -1110,8 +1110,10 @@ static int cxgb4_set_hash_filter(struct net_device *dev,\n \t}\n \n \tatid = cxgb4_alloc_atid(t, f);\n-\tif (atid < 0)\n+\tif (atid < 0) {\n+\t\tret = atid;\n \t\tgoto free_smt;\n+\t}\n \n \ticonf = adapter->params.tp.ingress_config;\n \tif (iconf & VNIC_F) {\n",
    "prefixes": [
        "net-next"
    ]
}