get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809153,
    "url": "http://patchwork.ozlabs.org/api/patches/809153/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170902214929.2890-5-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": "<20170902214929.2890-5-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-02T21:49:12",
    "name": "[net-next,v2,04/21] mlxsw: reg: Add mlxsw_reg_ralue_act_ip2me_tun_pack()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "546cad56e8ae8fa41c56620d8ebf2f21a6e2355c",
    "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/20170902214929.2890-5-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 1180,
            "url": "http://patchwork.ozlabs.org/api/series/1180/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1180",
            "date": "2017-09-02T21:49:08",
            "name": "mlxsw: Offloading GRE tunnels",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1180/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809153/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809153/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=\"qWxR+mdT\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl8sQ4mxMz9t0F\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun,  3 Sep 2017 07:49:46 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752817AbdIBVto (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 2 Sep 2017 17:49:44 -0400",
            "from mail-wm0-f65.google.com ([74.125.82.65]:35939 \"EHLO\n\tmail-wm0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752790AbdIBVtk (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 2 Sep 2017 17:49:40 -0400",
            "by mail-wm0-f65.google.com with SMTP id p17so3153791wmd.3\n\tfor <netdev@vger.kernel.org>; Sat, 02 Sep 2017 14:49:39 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tu15sm5665099wrg.31.2017.09.02.14.49.37\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 14:49:37 -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=q5+aPSe4cvXK3DGVYyqX6vN56plcYousfAQPt0Zhs6A=;\n\tb=qWxR+mdToJCWqaaFZM1qgcLeWgxd8U5rF38P/SM3Hf/R7STI1WkhkJPkKJOOc/LmzR\n\tm38AO2eHvXHUhTb0SCc5Z3FtNgOqo/4y8vPsh9YEBqcFwo+EJOpMG5UfnwKJLmp291ef\n\tRpTY00WYH2JHpy3r+Kd/mbcJllN/RuxoMbhUlIqV/j+kDdJmknuzDoDTMKTXKEYA/jfH\n\twktp5Ji1mohr+lui1ygt4M5sczcaQAhHMyNH7eNB+gKb9wtu2XyTWztntt5ySmRa1BTu\n\tTDkyEmq9AqOcWFUbK01wZ0IW8HcwlxQFiWFUzjI4jzaWMl4JU7up9U3VpZWI5e25Mbd9\n\tKAkg==",
        "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=q5+aPSe4cvXK3DGVYyqX6vN56plcYousfAQPt0Zhs6A=;\n\tb=o9DIkGahR6PjG+BYIf5C/Esv6T6CUULblZP1w/opAUry5YicAZ7Lww9wnatim0vLVu\n\tCW0kULDH33NF2FmTSkYYiGjd+fNF+34JoiYo2Tr9MhBqt2rXXE/lFRlGVB2RheczhXzj\n\tN7kDnwYeI8rGH23822hntXFHgpG0WRhbE4e2wt6KYG8DGLOrVBMKRp4oV1Src1vMMYt8\n\t1R6MkkXGTPTNo1k1VmehkXVy6zZmK2suU5YyMKc1Z2/mC7Kg4b3gN6xvjqBUN0CcMsuP\n\twsIflvoeziY1MB3seNgG4y78InNP15S8PLUJwzRn8L6T252ykh2xuGUxh9ARq+dEPTtZ\n\t1q8Q==",
        "X-Gm-Message-State": "AHPjjUiF6c0QYXtz5YWrioRaW3eT+JW1vk4mypVJ6dU+h5gnKl0DTPGV\n\tcc55GckiOKL7hhdES08=",
        "X-Google-Smtp-Source": "ADKCNb47W3rnDkqhucjJkwZLJuaU+03DFulckfwplUS4NNNauVjlOKV5JesoZfKk2j6i42a4+rir2w==",
        "X-Received": "by 10.28.189.139 with SMTP id n133mr1475899wmf.45.1504388978510; \n\tSat, 02 Sep 2017 14:49:38 -0700 (PDT)",
        "From": "Jiri Pirko <jiri@resnulli.us>",
        "To": "netdev@vger.kernel.org",
        "Cc": "davem@davemloft.net, petrm@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com",
        "Subject": "[patch net-next v2 04/21] mlxsw: reg: Add\n\tmlxsw_reg_ralue_act_ip2me_tun_pack()",
        "Date": "Sat,  2 Sep 2017 23:49:12 +0200",
        "Message-Id": "<20170902214929.2890-5-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170902214929.2890-1-jiri@resnulli.us>",
        "References": "<20170902214929.2890-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: Petr Machata <petrm@mellanox.com>\n\nTo implement IP-in-IP decapsulation, Spectrum uses LPM entries of type\nIP2ME with tunnel validity bit and tunnel pointer set. The necessary\nregister fields are already available, so add a function to pack the\nRALUE as appropriate.\n\nSigned-off-by: Petr Machata <petrm@mellanox.com>\nReviewed-by: Ido Schimmel <idosch@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n drivers/net/ethernet/mellanox/mlxsw/reg.h | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h\nindex bf936b6..24296cf 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h\n@@ -5054,6 +5054,15 @@ mlxsw_reg_ralue_act_ip2me_pack(char *payload)\n \t\t\t\t\tMLXSW_REG_RALUE_ACTION_TYPE_IP2ME);\n }\n \n+static inline void\n+mlxsw_reg_ralue_act_ip2me_tun_pack(char *payload, u32 tunnel_ptr)\n+{\n+\tmlxsw_reg_ralue_action_type_set(payload,\n+\t\t\t\t\tMLXSW_REG_RALUE_ACTION_TYPE_IP2ME);\n+\tmlxsw_reg_ralue_ip2me_v_set(payload, 1);\n+\tmlxsw_reg_ralue_ip2me_tunnel_ptr_set(payload, tunnel_ptr);\n+}\n+\n /* RAUHT - Router Algorithmic LPM Unicast Host Table Register\n  * ----------------------------------------------------------\n  * The RAUHT register is used to configure and query the Unicast Host table in\n",
    "prefixes": [
        "net-next",
        "v2",
        "04/21"
    ]
}