get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818951,
    "url": "http://patchwork.ozlabs.org/api/patches/818951/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170927062322.5476-10-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": "<20170927062322.5476-10-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-27T06:23:19",
    "name": "[net-next,v3,09/12] mlxsw: spectrum: router: Squash the default route table to main",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "91068bb093d1f630c37561ca50215ec60123cf05",
    "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/20170927062322.5476-10-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 5290,
            "url": "http://patchwork.ozlabs.org/api/series/5290/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5290",
            "date": "2017-09-27T06:23:12",
            "name": "mlxsw: Add support for offloading IPv4 multicast routes",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/5290/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818951/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818951/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=\"h331aeBo\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y277y6qDyz9t3F\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 16:24:14 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751993AbdI0GYC (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 02:24:02 -0400",
            "from mail-wr0-f195.google.com ([209.85.128.195]:35502 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751811AbdI0GXe (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 27 Sep 2017 02:23:34 -0400",
            "by mail-wr0-f195.google.com with SMTP id n64so3581615wrb.2\n\tfor <netdev@vger.kernel.org>; Tue, 26 Sep 2017 23:23:34 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tt191sm2161508wmt.36.2017.09.26.23.23.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 26 Sep 2017 23:23:32 -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=pby8EB9Wy1uMB32uKNUt0seRgHEaP2XsahyNg4+OMlo=;\n\tb=h331aeBoY0SCZR0tpPpF4Nw9V/63paH+nW6b6z12qhNJKPyuu1UaybFCdgFVCkt1fT\n\tdhfxVQyF2WdCTAdmCrz/YTmknvY1hDCVlYLM8PbrDBgpkNJK5OrDiJX3G3Rp7E9DgKzF\n\tDpX6uPItk3AbTLkziXnkB+7K1XPbAlRFUEZIEGHuaTIoVwSZ2efNI49UfFipMaTG/vya\n\tGdAfDKs0GYEPwmDo+VbfdrS6tEIN6aFButFRuOsTvFSq6BcGpFrADYUhhPdH3Vyqhadv\n\t1uAyAZhdTa1eo4Ro7F7AalJRxphjQzrxzEoEtnjDkFuF4IZG2rqsq/OQu7dlatN+VJ0s\n\tQn+g==",
        "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=pby8EB9Wy1uMB32uKNUt0seRgHEaP2XsahyNg4+OMlo=;\n\tb=TN14nRUWMXgk2XFbui7kVNlSNtqNgCM93d0nz+/ojjh5GQx+zxcIwTbuwm/3tMQPEI\n\taUeLJnHRFmBGp8umP1+ifb3rbtmKyIHOBKS0mw0/TPUVLR2VHXQbnn2bH+2Fy0u0e9qz\n\tLg5gsUh0oGVeTPICcHWKgVWyYesSQ7BdIFg4RHJ2FUoK8p/uYBQuh7oXexO+jPynJV/O\n\tZ52nEya5MuaQwihSePwBe4IOP0vyoMmjWCRTsdMgPNR9LUd7u7QjiUt84auITlUMnd9/\n\tXgA5ZOfxUbeIQXsxaaMW2PFowVTHdy8F+GFaRbcIkfdjHPk4J++Y8URcWNI4F7Pssktq\n\t3VvQ==",
        "X-Gm-Message-State": "AHPjjUh476OlLjUzTrusXZlT80bMgDoJ5jMAr4wZXhOpCcQkkxHapwDH\n\taLPudID8qeU9h10/3FSvtWMdYN4f",
        "X-Google-Smtp-Source": "AOwi7QD3ZwgX9v0VlsFl5CHE62ZWwwhCh8YJQ/un0dbEVHVsoFAGsL47DIFPV9EQMteajUoqUpa4bQ==",
        "X-Received": "by 10.223.172.14 with SMTP id v14mr388286wrc.142.1506493412395; \n\tTue, 26 Sep 2017 23:23:32 -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, nikolay@cumulusnetworks.com, andrew@lunn.ch,\n\tlinyunsheng@huawei.com",
        "Subject": "[patch net-next v3 09/12] mlxsw: spectrum: router: Squash the\n\tdefault route table to main",
        "Date": "Wed, 27 Sep 2017 08:23:19 +0200",
        "Message-Id": "<20170927062322.5476-10-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20170927062322.5476-1-jiri@resnulli.us>",
        "References": "<20170927062322.5476-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\nCurrently, the mlxsw Spectrum driver offloads only either the RT_TABLE_MAIN\nFIB table or the VRF tables, so the RT_TABLE_LOCAL table is squashed to the\nRT_TABLE_MAIN table to allow local routes to be offloaded too.\n\nBy default, multicast MFC routes which are not assigned to any user\nrequested table are put in the RT_TABLE_DEFAULT table.\n\nDue to the fact that offloading multicast MFC routes support in Spectrum\nrouter logic is going to be introduced soon, squash the default table to\nMAIN too.\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/spectrum_router.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex 321f735..28c0c84 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -693,8 +693,8 @@ static int mlxsw_sp_vr_lpm_tree_unbind(struct mlxsw_sp *mlxsw_sp,\n \n static u32 mlxsw_sp_fix_tb_id(u32 tb_id)\n {\n-\t/* For our purpose, squash main and local table into one */\n-\tif (tb_id == RT_TABLE_LOCAL)\n+\t/* For our purpose, squash main, default and local tables into one */\n+\tif (tb_id == RT_TABLE_LOCAL || tb_id == RT_TABLE_DEFAULT)\n \t\ttb_id = RT_TABLE_MAIN;\n \treturn tb_id;\n }\n",
    "prefixes": [
        "net-next",
        "v3",
        "09/12"
    ]
}