get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809095,
    "url": "http://patchwork.ozlabs.org/api/patches/809095/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170902152126.17286-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": "<20170902152126.17286-5-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-02T15:21:09",
    "name": "[net-next,04/21] mlxsw: reg: Add mlxsw_reg_ralue_act_ip2me_tun_pack()",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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/20170902152126.17286-5-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 1159,
            "url": "http://patchwork.ozlabs.org/api/series/1159/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1159",
            "date": "2017-09-02T15:21:05",
            "name": "mlxsw: Offloading GRE tunnels",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1159/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809095/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809095/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=\"nRMAOk4W\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl0H40qxsz9sRY\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun,  3 Sep 2017 01:22:56 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752842AbdIBPWy (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 2 Sep 2017 11:22:54 -0400",
            "from mail-wm0-f65.google.com ([74.125.82.65]:37499 \"EHLO\n\tmail-wm0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752727AbdIBPVh (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 2 Sep 2017 11:21:37 -0400",
            "by mail-wm0-f65.google.com with SMTP id x189so2639238wmg.4\n\tfor <netdev@vger.kernel.org>; Sat, 02 Sep 2017 08:21:36 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tw10sm2055581wra.47.2017.09.02.08.21.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 08:21:34 -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=nRMAOk4Wlq7k3sDw4wTvSvfCqES/YzzpkRTyRmpjV/m2vbTzvBX5ZLxlP/t7UywjbH\n\tBpRF9uB1g30Wl+OFZNE5WjgsUrXxkaoEQXBHLKnBWALz2SJ+d3ilFO+RhgxETwVs7tkj\n\tjAdz0QK9c6RgClxT4fNM+iWnWWwGJ0tTHzegOxtt5dKs4wapeA4608BdgZPTVR3NJdHu\n\tyvnxxfVdQAekBWEk+ZT1u6iSbipo84Rve8qFbDzqtlCn0yTt+cOYYtOn5VCyNL3mS/Uu\n\tWpe1G5oYI6CsuKwpGGtJtt5pxrzDicJYy2EOA8dc5oO4t+8mo/1dq1kLIHswMhj294Md\n\tSkvg==",
        "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=ic2HSCp6hwRYWG5R9RADUjkTdjwfLhqu6LVSDzKzLJXHQ6pZReTHFQB2Hr5lvWDjio\n\txa1ZKqcv6bfnzJ/zvVjAootDXnMHmWNVBvgxwAZ33PID7tp4p7aR7NWC+89y6CQ2QlgK\n\txk6LkPX6dcKTMc0nx0++AegVWTtUbtK4LU6GvG45S8dQrIHeKW4+8uzSPHxjlh1NJabY\n\tmPfYS8LfpFcsiRa/jHsvLizWSI/n0V2N207AcMaAdNyhL18UXh2NhtUEH/aLp72/jOqd\n\tYb5Coo0XPYJU4YQydZ1yHF2PBetVkHrPsgnqUl+9TJFo861Oo27q6v29kULKrPGFfNZM\n\tuQCA==",
        "X-Gm-Message-State": "AHPjjUj9hrb6L/d3ysJTR04vHMKJjNWhnjgz1eQKtiN2VGv6vNnnu0ig\n\tQPyX8C9eye0M5bvx5mY=",
        "X-Google-Smtp-Source": "ADKCNb61H9cXvAr0gaFpva4TYOZYMcpvkWSDL5H+cQQQrF0qTkJBpcLkGmFLAM5EnVltW9ec8Ktpfw==",
        "X-Received": "by 10.28.51.7 with SMTP id z7mr450164wmz.124.1504365695415;\n\tSat, 02 Sep 2017 08:21:35 -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 04/21] mlxsw: reg: Add\n\tmlxsw_reg_ralue_act_ip2me_tun_pack()",
        "Date": "Sat,  2 Sep 2017 17:21:09 +0200",
        "Message-Id": "<20170902152126.17286-5-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170902152126.17286-1-jiri@resnulli.us>",
        "References": "<20170902152126.17286-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",
        "04/21"
    ]
}