get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 815344,
    "url": "http://patchwork.ozlabs.org/api/patches/815344/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170919080020.5870-7-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": "<20170919080020.5870-7-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-19T08:00:13",
    "name": "[net-next,06/13] mlxsw: reg: Add The Router TCAM Allocation register",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "806aeb9dc414e8970a1ea11168a755954c900ac0",
    "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/20170919080020.5870-7-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 3798,
            "url": "http://patchwork.ozlabs.org/api/series/3798/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=3798",
            "date": "2017-09-19T08:00:07",
            "name": "mlxsw: Prepare for multicast router offload",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3798/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815344/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815344/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=\"rhV1cII5\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxFgX2Qgvz9rxm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 18:01:12 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751733AbdISIBK (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 19 Sep 2017 04:01:10 -0400",
            "from mail-wm0-f66.google.com ([74.125.82.66]:35384 \"EHLO\n\tmail-wm0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751227AbdISIA3 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 19 Sep 2017 04:00:29 -0400",
            "by mail-wm0-f66.google.com with SMTP id e64so3064007wmi.2\n\tfor <netdev@vger.kernel.org>; Tue, 19 Sep 2017 01:00:28 -0700 (PDT)",
            "from localhost (ip-89-177-125-82.net.upcbroadband.cz.\n\t[89.177.125.82]) by smtp.gmail.com with ESMTPSA id\n\t200sm1145338wmu.44.2017.09.19.01.00.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 19 Sep 2017 01:00:27 -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=olhQhNmlsl002Vk85Y0kOXI81dVm1GJ4/mkGEqwe64A=;\n\tb=rhV1cII5rp0mVnjgzgB8b93TTx0dLy6rL/9OYTAGRYBUG8ZOIvPFfn5J8j8DmKis95\n\t9KvmW9i/rEcMsX5TLsKae2oEJf2L9ykaeD4FOjKqW5e8jLeTIsE3xiLKT9FqtueM8Z4N\n\to9W9q8ZZLkT/MwkTZDT55DFUmxuTPg267Ft8KJlnP3Cstzxng+d3t2rRUIfc5n9NNgQR\n\tc2erXnJ8VI+/Pu0KfBm33gKTWmvnC4dxrpyf/hO2qNsnN0knF76ap2BuydkwWebtGgBI\n\tX+GWNPASh0SELCh0TtO41MHh798oQlRWuW2iJnnK5eW51aCsnm0tphEGdfQ4xlp8ih7c\n\ttT7A==",
        "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=olhQhNmlsl002Vk85Y0kOXI81dVm1GJ4/mkGEqwe64A=;\n\tb=F6zQMcz9ogSoZUf810gde76MFSi9ci9UKlKpC6aVEMNmmI730wXUV0ZW6QGat+fdtl\n\tQU65CPQN/aR9J442d9z8tq07YltpfcHJHgKI71Rl3A1mIynKohdoWUfmwrH44RIG3rnN\n\t1ncq0hoWqjO3xm+I22GaJwCA/C38xo6dorQnAj0ee7ds2LFIunO/mQm2XMaFe1pvqyHC\n\tyVJqg3npwLtK/1uaTZzPTr2o+wqjL6qDDi3iEFHVhW4amHDwz0CTtWrL+ovOUKUsm/Fp\n\t5quqhhXAzh9LQV4klufJOiTBFDs+5Cw/jYj2mHoHZUR1HGKiTsTxNEfHYDaHJo7lh4wS\n\tQL+g==",
        "X-Gm-Message-State": "AHPjjUjPUlTpSgLDhzGBahGm0/ey+cT4X0WsBToSGt8I2wcZUk0JhL04\n\tblKf1HUi6tK7rjBc+iEM4RdRueSc",
        "X-Google-Smtp-Source": "AOwi7QAFvT5TgcxtU8kjDoe5DSW0WaBa+hiIaYrzb0kSILLJu83jRga/7/mljyRRIohELVFtC5YmPg==",
        "X-Received": "by 10.28.150.16 with SMTP id y16mr279878wmd.94.1505808027578;\n\tTue, 19 Sep 2017 01:00:27 -0700 (PDT)",
        "From": "Jiri Pirko <jiri@resnulli.us>",
        "To": "netdev@vger.kernel.org",
        "Cc": "davem@davemloft.net, yotamg@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com",
        "Subject": "[patch net-next 06/13] mlxsw: reg: Add The Router TCAM Allocation\n\tregister",
        "Date": "Tue, 19 Sep 2017 10:00:13 +0200",
        "Message-Id": "<20170919080020.5870-7-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20170919080020.5870-1-jiri@resnulli.us>",
        "References": "<20170919080020.5870-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: Yotam Gigi <yotamg@mellanox.com>\n\nThis register is used for allocation of regions in the TCAM table and it\nwill be used by the multicast router offloading logic.\n\nSigned-off-by: Yotam Gigi <yotamg@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 | 52 +++++++++++++++++++++++++++++++\n 1 file changed, 52 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h\nindex fb8ab44..e9f37ea 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h\n@@ -4310,6 +4310,57 @@ mlxsw_reg_ritr_loopback_ipip4_pack(char *payload,\n \tmlxsw_reg_ritr_loopback_ipip_usip4_set(payload, usip);\n }\n \n+/* RTAR - Router TCAM Allocation Register\n+ * --------------------------------------\n+ * This register is used for allocation of regions in the TCAM table.\n+ */\n+#define MLXSW_REG_RTAR_ID 0x8004\n+#define MLXSW_REG_RTAR_LEN 0x20\n+\n+MLXSW_REG_DEFINE(rtar, MLXSW_REG_RTAR_ID, MLXSW_REG_RTAR_LEN);\n+\n+enum mlxsw_reg_rtar_op {\n+\tMLXSW_REG_RTAR_OP_ALLOCATE,\n+\tMLXSW_REG_RTAR_OP_RESIZE,\n+\tMLXSW_REG_RTAR_OP_DEALLOCATE,\n+};\n+\n+/* reg_rtar_op\n+ * Access: WO\n+ */\n+MLXSW_ITEM32(reg, rtar, op, 0x00, 28, 4);\n+\n+enum mlxsw_reg_rtar_key_type {\n+\tMLXSW_REG_RTAR_KEY_TYPE_IPV4_MULTICAST = 1,\n+\tMLXSW_REG_RTAR_KEY_TYPE_IPV6_MULTICAST = 3\n+};\n+\n+/* reg_rtar_key_type\n+ * TCAM key type for the region.\n+ * Access: WO\n+ */\n+MLXSW_ITEM32(reg, rtar, key_type, 0x00, 0, 8);\n+\n+/* reg_rtar_region_size\n+ * TCAM region size. When allocating/resizing this is the requested\n+ * size, the response is the actual size.\n+ * Note: Actual size may be larger than requested.\n+ * Reserved for op = Deallocate\n+ * Access: WO\n+ */\n+MLXSW_ITEM32(reg, rtar, region_size, 0x04, 0, 16);\n+\n+static inline void mlxsw_reg_rtar_pack(char *payload,\n+\t\t\t\t       enum mlxsw_reg_rtar_op op,\n+\t\t\t\t       enum mlxsw_reg_rtar_key_type key_type,\n+\t\t\t\t       u16 region_size)\n+{\n+\tMLXSW_REG_ZERO(rtar, payload);\n+\tmlxsw_reg_rtar_op_set(payload, op);\n+\tmlxsw_reg_rtar_key_type_set(payload, key_type);\n+\tmlxsw_reg_rtar_region_size_set(payload, region_size);\n+}\n+\n /* RATR - Router Adjacency Table Register\n  * --------------------------------------\n  * The RATR register is used to configure the Router Adjacency (next-hop)\n@@ -6855,6 +6906,7 @@ static const struct mlxsw_reg_info *mlxsw_reg_infos[] = {\n \tMLXSW_REG(hpkt),\n \tMLXSW_REG(rgcr),\n \tMLXSW_REG(ritr),\n+\tMLXSW_REG(rtar),\n \tMLXSW_REG(ratr),\n \tMLXSW_REG(rtdp),\n \tMLXSW_REG(ricnt),\n",
    "prefixes": [
        "net-next",
        "06/13"
    ]
}